Date and Time to Timestamp
- Updated2023-02-17
- 3 minute(s) read
Date and Time to Timestamp
Creates a timestamp from a set of individual values that specify a date and time.

Inputs/Outputs

date time record
Date and time to convert.

fractional second
Fractions of a second since the start of the second. Values must be greater than or equal to 0 and less than 1.

second
Number of complete seconds since the start of the minute. Values can be 0 to 59.

minute
Number of complete minutes since the start of the hour. Values can be 0 to 59.

hour
Number of complete hours since midnight. Values can be 0 to 23.

day of month
Values can be 1 to 31.

month
Values can be 1 to 12.

year
Values can be from 1600 to 3000.

day of week
Values can be 1 to 7, which correspond to Sunday through Saturday, respectively. If is UTC? is True, the node ignores day of week.

day of year
Values can be 1 to 366. If is UTC? is True, the node ignores day of year.

DST
Value can be 0 for standard or 1 for daylight saving time. You also can set DST to -1 to have the node 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?
Boolean that determines if date time record is in Universal Time or in the configured time zone for the computer.
True | date time record is in Universal Time. |
False | date time record is in the configured time zone for the computer. |
Default value: False

timestamp
Timestamp that represents the date and time specified by the individual values in date time record.
If the year and month elements of date time record are out of range, the value of this output is unpredictable.