Example Code

ISO-8601 compliant date/time string in LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This example transforms the input date and time to ISO 8601 Standard

 

Description

This example creates an ISO-8601 compliant date/time string using various LabVIEW format specifiers. If no timestamp is provided, the current time is used.

 

Requirements

LabVIEW Full Development System 2012 or compatible

 

Steps to Implement or Execute Code

  1. Enter the Date and Time Part in the same format as indicated
  2. If no date and time is entered the current time will be used
  3. Select whether to show the Time Zone, Basic or Zulu
  4. Run the VI 

Additional Information or References

 Wikipedia entry for ISO-8601

VI Block Diagram

7199.PNG

 

 SubVI Connector Pane

8601 UTC Date-Time String.png

 

**This document has been updated to meet the current required format for the NI Code Exchange. **

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
J.CHEN
Member
Member
on

More developement work has been done here and shared as open source project. A very comprehensive set of time zone libraries. You can also find the package via JKI VI Package manager by searching for "Epoch"

 

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