odfsbinet.org/x/odf/internal/iso8601 Index | Files

package iso8601

import "sbinet.org/x/odf/internal/iso8601"

Package iso8601 provides a parser for ISO-8601 durations.

See:

Index

Functions

func Parse

func Parse(v string) (d time.Duration, err error)

Parse parses an ISO-8601 duration.

The lexical representation for duration is the [ISO 8601] extended format:

where:

The number of seconds can include decimal digits to arbitrary precision.

See the link below for more informations:

- https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#duration

Source Files

iso8601.go

Version
v0.1.0 (latest)
Published
Jul 4, 2023
Platform
linux/amd64
Imports
4 packages
Last checked
4 days ago

Tools for package owners.