"Lucas, Brian (AZ76)" <[EMAIL PROTECTED]> wrote:

>Using the Date/Time to seconds with an input of 1 Jan 1970 gets 2082870000.
>This is only .7% larger then the simple calculation.

Watch out!!!

Your number is slightly off because you didn't adjust for time zone offset.
The real value consideriing that the "seconds since" is (in LabVIEW always
and in most ANSI C implemenations usually as well) in reference to UTC would
be 2082844800.

Just enter 0 into a numeric control set to display Time & Date and you will
see that the control will display something else than 00:00:00 01/01/1904
(unless you live in the UK or any place on the same meridian ;-)
This is because Time & Date in LabVIEW is always in local time, which is
usually what you want anyway, while the seconds since is always in UTC.

Rolf Kalbermatter
CIT Engineering Nederland BV    tel: +31 (070) 415 9190
Treubstraat 7H                           fax: +31 (070) 415 9191
2288 EG Rijswijk        http://www.citengineering.com
Netherlands             mailto:[EMAIL PROTECTED]
 


Reply via email to