Table Of Contents

Get Date and Time String (G Dataflow)

Last Modified: January 19, 2017

Converts a timestamp value or a number of seconds to a date and time string in the time zone configured for the computer. This node converts a numeric input into a date and time string by interpreting it as the time-zone-independent number of seconds that have elapsed since 12:00 a.m., Monday, January 1, 0001, Universal Time.

connector_pane_image
datatype_icon

date format

The appearance of the date string.

Date formats vary with your system configuration. To use a different date format, use Format Date and Time String.

Name Description
short

Example: 1/21/94

long

Example: Friday, January 21, 1994

abbreviated

Example: Fri, Jan 21, 1994

Default: short

datatype_icon

timestamp

The time that you want to convert.

The year in this timestamp must be between 1600 and 3000.

If you wire a numeric value to this input, the node interprets the number as the time-zone-independent number of seconds that have elapsed since 12:00 a.m., Monday, January 1, 0001, Universal Time [01-01-0001 00:00:00]. The node interprets a negative number as the number of seconds before this time.

Default: The current date and time

datatype_icon

show seconds?

A Boolean that controls the display of seconds in the time string.

TRUE Includes seconds in time string
FALSE Does not include seconds in time string

Default: FALSE

datatype_icon

date string

String of the date from timestamp formatted according to the specified date format.

datatype_icon

time string

String of the time from timestamp formatted according to the configured time zone for your computer. show seconds? controls whether the string includes seconds.

Where This Node Can Run:

Desktop OS: Windows

FPGA: All devices (only within an Optimized FPGA VI)


Recently Viewed Topics