DateTime Tools

Add Century to Short Year

Convert a 2 digit year to a 4 digit year by assuming that the year is in the current year or preceeding 99.

Get Next Hour

Get the current time in seconds, rounded up to the next hour.

MGI_Time Correct Month

Inspect the month field of the specified date record. If the month field is out of range, make it in range (1-12) by adjusting the year accordingly.

MGI_Time Is Leap Year

Outputs true if the specified year is a Leap year, taking into account every 4, 100, and 400 year rules.

Parse ZIP Datetime String

Convert the datetime string returned from reading a zip directory to UTC seconds.

Speed Tester

This VI may be used as a template to test the execution timing of subvis.

Tickcount Time Check

Check a time limit given as a tickcount. Handles wraparound properly.

UTC Format Date mmm dd yyyy

Format a LabVIEW time (UTC seconds) as a UTC date, avoiding the normal time zone dependence.

UTC Format DateTime String

Format a LabVIEW time (UTC seconds) as a UTC datetime, avoiding the normal time zone dependence. See Format Date/Time String for the conversion codes.

UTC Get Offset

Determine the local UTC offset as numeric and string. Usage: LabVIEW numerics use the UTC time in seconds, but conversion to date/time strings applies the operating system time zone. Concatenate this vi's string output to indicate which time zone was applied, or subtract this vi's numeric output before doing the conversion to get UTC based date/time text. 1.1: Changed calculation algorithm but not outputs.

UTC Parse HTTP Datetime String

Parse a date and time string in any of the http approved formats listed in RFC 2068.

UTC Parse Zulu Datetime String

Parse a date and time string in the standard iso format for a zero meridian referenced time.

UTC Round DateTime to Midnight

Truncate a datetime so that it contains only date information. LabVIEW numeric datetimes are seconds since midnight of 1-Jan-1904 UTC.

Wait(s)

Waits the specified number of seconds. Useful to create data dependency on the error lines and to have a smaller icon.

Wait+ (ms)

NOTE: This VI was copied from the NI-DAQ Wait+ (ms).vi of LabVIEW 6.1. It is included here in the palettes for convenience when working where NI-DAQ is not installed. Calls the Wait (ms) function only if no input error exists.