package iso8601
import "sbinet.org/x/odf/internal/iso8601"
Package iso8601 provides a parser for ISO-8601 durations.
See:
Index ¶
Functions ¶
func Parse ¶
Parse parses an ISO-8601 duration.
The lexical representation for duration is the [ISO 8601] extended format:
- PnYnMnDTnHnMnS
- PnW
where:
- nY represents the number of years,
- nM the number of months,
- nW the number of weeks,
- nD the number of days,
- 'T' is the date/time separator,
- nH the number of hours,
- nM the number of minutes and
- nS the number of seconds.
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.