The Daily CLAD

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: To Time Stamp

SercoSteveB
Active Participant

What is Timestamp Out following execution of the VI?

Timestamp Out 26_03_2015.png

a) 00:00:00.000 DD/MM/YYYY

b) 00:00:00.000 00/00/1904

c) 00:00:00.000 01/01/1901

d) 00:00:00.000 01/01/1904

Comments
DesasterMaster
NI Employee (retired)

A

--------------------------------------------------------------------------------------------------------
Work with NI Hard- and Software for about 15 years now.

Certified LabVIEW Developer & TestStand Developer/Architect

--------------------------------------------------------------------------------------------------------

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
mini09
Active Participant

A

Thoric
Trusted Enthusiast

Without checking, I'm going to guess D, possibly C (I can never remember the LabVIEW clock base!).

Thoric (CLA, CLED, CTD and LabVIEW Champion)


SercoSteveB
Active Participant

This one was a surprise to me!!!!!

crossrulz
Knight of NI

The display shows A, but the value should be D (assuming UTC time).  1 second on my computer shows 07:00:01.000 12/31/1903.  I'm in Eastern Time Zone, which is UTC-5 hours.

NI used 1904 since it was the first leap year in the century.  1900 actually was not a leap year and it caused all kinds of problems with software that had their epochs set to 1900.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Thoric
Trusted Enthusiast

Interesting follow up:

epsilon time.PNG

Thoric (CLA, CLED, CTD and LabVIEW Champion)


crossrulz
Knight of NI

Expand the display...

Machine Eplison Time Stamp.png


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Thoric
Trusted Enthusiast

It's more instructive from the UK where UTC is the locale time:

epsilon time 2.PNG

This is literally, therefore, the closest you can get to 00:00:00 01/01/1904 without the timestamp showing instead DD/MM/YYYY. Clearly true zero is a special case considered to be a non-timestamp (null).

Thoric (CLA, CLED, CTD and LabVIEW Champion)


dellmore
Member

A

SercoSteveB
Active Participant

Awesome crossrulz & Thoric, thanks

MrStevenUND
Member

I was sure it was D until I read everyone else's responses.

LordNobady
Member

I like this question.

First guess was C. acording to the comments it is A. 0 as a special not initialized case I like it.


Learning LabVIEW since January 2013
Manu1991
Member

A

Best Regards
Manasa M
SercoSteveB
Active Participant

Answer: A.  Nice one Dennis Amelung, gnshmrthy, crossrulz, dellmore & Manu1991.

Some great stuff in this thread, thanks to crossrulz & Thoric

SUYAM
Member

A

ashwinilele
Member

I leanrt new things .

Thanks crossrulz & Thoric