FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

Conversion from IATimeStamp format

My Fieldpoint FP-1601 module returns a timestamp in IATimeStamp format. This is a double precision floating point number which represents the number of days since 1/1/1900 12:00 AM. I want to convert that to a date/time format such as 'yyyy/mm/dd hh:mm:ss.sss'. Can anyone help? Thanks.
0 Kudos
Message 1 of 2
(3,023 Views)
Hello:

Here is a KnowledgeBase (KB) that talks a little more about the IATimeStamp format:
http://digital.ni.com/public.nsf/websearch/30A2A126ECD85CA686256A02004DDEBC?OpenDocument

I assume you are using LabWindows/CVI to program your application. If this is the case, the functions found under /Libraries/ANSI C/Data & Time (time.h)/ will be helpful. There are functions there to get the time as an integer (secs since 1/1/1900) - Time(), convert that integer to a time structure - gmTime(), and a function to convert that structure to a string - ascTime(). If you are using another text-based compiler, just check out the ANSI C libraries and look for "time" functions.

Good Luck!

Sincerely,

Brooks B.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,023 Views)