Skip to content
A fast ISO8601 date parser for Go
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
error.go
iso8601.go
iso8601_test.go
json.go
json_test.go

README.md

iso8601

A fast ISO8601 date parser for Go

GoDoc Build Status Go Report Card cover.run

import "github.com/relvacode/iso8601"

When working with dates in Go, especially with API communication the default RFC3339 time layout is too restrictive to support the wide range of dates supported in the ISO8601 specification.

This library intends to parse any date that looks like the ISO8601 standard into native Go time.

Performance

This library is efficient with no allocations needed to parse a full date.

BenchmarkParse-8        20000000               100 ns/op               0 B/op          0 allocs/op
You can’t perform that action at this time.