Jump to content

Recommended Posts

Posted

structures are not in the manual under data types.

I couldn't find any examples that accessed structure members.

please provide a usable example or at least give a how-to.

the structure I am trying to access is $tagSYSTEMTIME

the function that returns this structure is _Date_Time_GetLocalTime() which I am trying to get the information from. I

especially need the MSeconds (actually, everything except DOW).

thank you.

Posted (edited)

There's an example in the help file.

#include <Date.au3>

$tTime = _Date_Time_GetLocalTime()
$aTime = _Date_Time_SystemTimeToArray($tTime)
MsgBox(0,'Milliseconds',$aTime[6])

;~ Array $aTime:
;~ [0] - Month
;~ [1] - Day
;~ [2] - Year
;~ [3] - Hour
;~ [4] - Minutes
;~ [5] - Seconds
;~ [6] - Milliseconds
;~ [7] - Day of week

You can also use the @MSEC :P

Edited by VixinG

[indent=3][/indent]

Posted (edited)

The best example I found regarding the $tagSYSTEMTIME structure is in the __Date_Time_CloneSystemTime() function. This is found in the ..AutoIt3IncludeDate.au3 file on your hard drive.

Edited by Malkey

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...