LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

GPS time from UTC

Hye guys, I need you again 😄

 

I'm trying to convert UTC to GPS time (unsigned int),

for that I need to get global PC time (not local) add the leap seconds (16- as far as I know)

and convert it to time in milisecs from the begining of the week ...

 

pleas help 😄

 

Thanks in advance,

Aj

----------------------------
Amit Joseph,
Software Engineer
0 Kudos
Message 1 of 2
(3,044 Views)

I think you can use winapi functions:

 GetLocalTime/GetSystemTime - get actual time (local/UCT)

 LocalFileTimeToFileTime/FileTimeToLocalFileTime - converision between local and UTC

 SystemTimeToFileTime/FileTimeToSystemTime - conversion between date format and number of 100ns unit from 1.1.1600

 GetTimeZoneInformation - time zone information

 

 (more info on msdn.com)

0 Kudos
Message 2 of 2
(3,027 Views)