Epoch Date & Time Library - LabVIEW-Open-Source/Epoch-Time GitHub Wiki

Unified Date & Time library for LabVIEW

Palettes

This library provides support for UTC, Unix and GPS Epochs, enabling the conversion of timestamps into the proper frame of reference. It supports leap seconds to accurately convert from UTC (coordinatad universal time) to GPS (global positioning system) to TAI (international atomic time). It is completed with an extensible interface for Date-String formatters and comes pre-loaded with ISO8601 and RFC5322 support.

  • ISO8601 is the international standard for date and time on almost every modern interoperable systems and databases.
  • RFC5322 is the standard for email headers format, which includes a Date-Time string. This library covers only the date-time string part of the standard.

Main Palette

Epoch Palette

Epochs

GPS, Unix, UTC epochs:

https://github.com/LabVIEW-Open-Source/Epoch-Time/wiki/GPS-&-UNIX-Time

ISO8601 Formatting

https://github.com/LabVIEW-Open-Source/Epoch-Time/wiki/ISO8601-Format

RFC3339 Formatting

https://github.com/LabVIEW-Open-Source/Epoch-Time/wiki/RFC3339-Format

RFC5322 Formatting (aka. Email Date-Time String)

https://github.com/LabVIEW-Open-Source/Epoch-Time/wiki/RFC5332-Format

Compare Timestamps

Because of the high resolution of the LabVIEW Timestamps, and the limited resolution of date-time strings, validation of equality needs to be performed with a certain precision. A practical method has been added to the palette to compare with a pre-defined resolution. The node defaults to 1 second, but can be set to any fractional of multiple of 1, and units available span from nanoseconds to weeks. For simplicity, months and years have been ommitted because of extra computation required to handle leap years and different month lengths. All comparisons are performed in timestamp epoch (UTC).