[ Tcllib Home | Main Table Of Contents | Table Of Contents | Keyword Index | Categories | Modules | Applications ]

# clock_iso8601(n) 0.1 tcllib "Date/Time Utilities"

## Name

clock_iso8601 - Parsing ISO 8601 dates/times

## Synopsis

- package require Tcl 8.5
- package require clock::iso8601 ?0.1?

- ::clock::iso8601 parse_date date options...
- ::clock::iso8601 parse_time time options...

## Description

This package provides functionality to parse dates and times in ISO 8601 format.

::clock::iso8601 parse_date date options...

  This command parses an ISO8601 date string in an unknown variant and returns the given date/time in seconds since epoch.

  The acceptable options are -base, -gmt, -locale, and -timezone of the builtin command clock scan.

::clock::iso8601 parse_time time options...

  This command parses a full ISO8601 timestamp string (date and time) in an unknown variant and returns the given time in seconds since epoch.

  The acceptable options are -base, -gmt, -locale, and -timezone of the builtin command clock scan.

## Bugs, Ideas, Feedback

This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category clock::iso8601 of the Tcllib Trackers. Please also report any ideas for enhancements you may have for either package and/or documentation.

When proposing code changes, please provide unified diffs, i.e the output of diff -u.

Note further that attachments are strongly preferred over inlined patches. Attachments can be made by going to the Edit form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar.

## Category

Text processing