Date/Time To Seconds Function

Owning Palette: Timing VIs and Functions

Requires: Base Development System

Creates a timestamp from a set of individual values that specify a date and time.

Use the To Double Precision Float function to convert the timestamp value to a lower precision, floating-point number. The number is measured as the number of seconds that have elapsed since 12:00 a.m., Friday, January 1, 1904, Universal Time, assuming DST is set to 1.

 Add to the block diagram  Find on the palette
date time rec is the date and time to convert. If is UTC is TRUE, date time rec is in Universal Time. If is UTC is FALSE, date time rec is in the configured time zone for the computer.
fractional second must be greater than or equal to 0 and less than 1.
second can be from 0 to 59.
minute can be from 0 to 59.
hour can be from 0 to 23.
day of month can be from 1 to 31.
month can be from 1 to 12.
year can be from 1600 to 3000.
day of week can be from 1 to 7, which correspond to Sunday and Saturday, respectively.
Note  This function ignores day of week when building the timestamp.
day of year can be from 1 to 366.
Note  This function ignores day of year when building the timestamp.
DST indicates whether the time is standard (0) or daylight savings time (1). You also can set DST to -1 to have the VI determine the correct time automatically each time you run the VI. If is UTC is TRUE, the function ignores the DST setting and uses Universal Time.
is UTC specifies if date time rec is in Universal Time or in the configured time zone for the computer. If TRUE, date time rec is in Universal Time. The default is FALSE.
time stamp is the time that represents the date and time specified by the individual values in date time rec. If year and month are out of range, the results are unpredictable.