Jack Kelly
New Member
I see no benefit from anonymity.
Posts: 8
|
Post by Jack Kelly on Nov 4, 2023 16:54:16 GMT -5
Can anyone provide a routine to get the current UTC? Thank you...
|
|
|
Post by Chris Iverson on Nov 4, 2023 19:51:35 GMT -5
If you mean the current time IN UTC(and not the timezone offset), the GetSystemTime() API call always returns the current time in UTC.
struct SYSTEMTIME,_ Year as short, Month as short,_ DayOfWeek as short, Day as short,_ Hour as short, Minute as short, Second as short,_ Milliseconds as short
'GetSystemTime() retrives the current time as UTC. CallDLL #kernel32, "GetSystemTime",_ SYSTEMTIME as struct,_ ret as void
print "Year - ";SYSTEMTIME.Year.struct print "Month - ";SYSTEMTIME.Month.struct print "Day - ";SYSTEMTIME.Day.struct print "Day of Week - ";SYSTEMTIME.DayOfWeek.struct print "Hour - ";SYSTEMTIME.Hour.struct print "Minute - ";SYSTEMTIME.Minute.struct print "Second - ";SYSTEMTIME.Second.struct print "Millisecond - ";SYSTEMTIME.Milliseconds.struct
|
|
Jack Kelly
New Member
I see no benefit from anonymity.
Posts: 8
|
Post by Jack Kelly on Nov 5, 2023 12:53:47 GMT -5
Thanks, Chris. I'll see if I can make that call work.
|
|