LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Seconds since 1970?

I am in Arizona where we don't observe dalight savings time (we have enough sun in the summer here).  But still, how can my computer change a png file that Dennis attached, and how can it change your block diagram???  I didn't even run your vi, just opened up the block diagram and there is was 11:00:00.000 12/31/1969.  I made a copy of the block diagram and converted it to png and attached it here.  If you see this a 12:00:00.000 1/1/1970, then its time to run that vi that plays the twilight zone music.
- tbob

Inventor of the WORM Global
0 Kudos
Message 11 of 14
(981 Views)
When I made my example, I copied Dan's and used it to create the seconds since 1970. I didn't notice that the time stamp was now different in mine. It would appear that copying a time stamp constant created in Austin into a VI in Colorado, makes the adjustment for the different time zone. I can't explain this behavior and I don't think I like it.
0 Kudos
Message 12 of 14
(966 Views)
I'll first say that I am not a LV expert (work in the DAQ group) and don't know what lies beneath it's skin.  However if a timestamp really is stored internally as a number of seconds since 12 AM 1904 Universal Time, it seems to me as though it SHOULD adjust for timezone/daylight savings.  Otherwise, it seems to me a timestamp would loose it's meaning and be a bit more arbitrary.
 
Dan
0 Kudos
Message 13 of 14
(963 Views)
This makes perfect sense.  Cancel the twilight zone vi.  However, like Dennis, I don't like it.  I don't want my computer changing code for me unless I tell it to.  My windows setting for time zone has the Automatic Adjust for DST unchecked.  I guess it just adjusted to Arizona time, which is one hour behind Austin time without DST being in effect.  So it does make perfect sense.
- tbob

Inventor of the WORM Global
0 Kudos
Message 14 of 14
(952 Views)