LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Dave_Thomson

ISO-8601 Time Parsing

Status: New

A number of people, myself included, have found it necessary to parse ISO-8601 time strings into time values. The ISO standard has a lot of options, so a complete solution is pretty time-consuming. It would be nice if the string parsing functions in LabVIEW included a format specifier that allowed parsing of ISO-8601 time strings directly.

-------------------------------------------------------------
David Thomson Original Code Consulting
www.originalcode.com
National Instruments Alliance Program Member
Certified LabVIEW Architect
Certified Embedded Systems Developer
-------------------------------------------------------------
There are 10 kinds of people: those who understand binary, and those who don't.
4 Comments
wiebe@CARYA
Knight of NI

Ideally though (as mentioned in the idea) ISO-8601 support should (also) be added to:

  • Format Into String
  • Format Value
  • Format Date\Time String
  • Scan From String
  • Scan Value
  • Control\Indicator Format Specifiers

That's something NI needs to do (optionally based on community effort).

PhillipBrooks
Active Participant

There is a github repo with quite a few time conversion functions:

 

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

 

Also installable via VIPM - seach for Epoch

drjdpowell
Trusted Enthusiast

I would suggest supporting RFC3339 rather than the larger task of fully supporting ISO-8601.

drjdpowell
Trusted Enthusiast

Note: my RFC3339 support functions are based on the existing timestamp formating codes, but they require multiple workarounds, especially to support local offset forms like 2025-07-07T17:12:13.123+01:00.