03-30-2005 01:52 PM
03-31-2005 05:39 PM
03-31-2005 05:55 PM
02-23-2009 05:54 PM
I've created a VI that does just this and posted it on the community examples. You can view it at http://decibel.ni.com/content/docs/DOC-3644.
Basically to get around the timezone issue that Odd_Modem pointed out it queries the timezone data from the kernel32.dll in windows then subtracts out this offset.
Regards,
Steven Zittrower
Applications Engineer
National Instruments
10-09-2009 02:19 PM
StevieZ, I don't believe your method is necessary. That is, there isn't a "time zone" issue to deal with. I've attached a VI that demonstrates this.
10-10-2009 03:13 AM
Here is a simpler (and OS independent) method to get the timezone offset.
Ton
10-12-2009 11:48 AM
10-13-2009 01:09 AM - edited 10-13-2009 01:09 AM
ceger wrote:
Very nice, Ton. But what I'm attempting to demonstrate is that the timezone offset is not needed if one is simply trying to determine the current Unix (POSIX) time. All that is needed is to subtract a constant, timezone independent value from the LV timestamp.
Indeed and you can determine that offset once and then use it as a simple numeric in all your diagrams.
For the curious ones the interesting part that ceger refers to is all at the right border of his VI in the box. What you see there is all that is needed to convert LabVIEW time from its epoch into a different epoch.
10-13-2009 01:38 AM
ceger wrote:
Very nice, Ton. But what I'm attempting to demonstrate is that the timezone offset is not needed if one is simply trying to determine the current Unix (POSIX) time. All that is needed is to subtract a constant, timezone independent value from the LV timestamp.
Yes I know, I was posting the code to provide a non-os dependent way to get the timezone offset.
Especially since the Windows version came from an NI member.
Ton
04-09-2010 10:22 AM
Hi,
I need information for convert LV Date/Time to Unix time on sbRIO9631.
I have seen the example, but I have a
different time between PC and sbRIO (sbRIO: 2010/04/09 07:22:33 and PC: 2010/04/09 16:22:33).
I need to synchronize the time!
If anyone can help?
Thanks a lot!
md71