A fast ISO8601 date parser for Go
Clone or download
relvacode Merge pull request #4 from relvacode/bug/minute-zones
Support time-zones containing minutes
Latest commit e9cae14 Dec 21, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Apr 25, 2017
.travis.yml add travis file Apr 25, 2017
LICENSE Initial commit Apr 25, 2017
README.md add cover.run badge Dec 4, 2018
error.go support time zones with minutes; resolves #3 Dec 21, 2018
iso8601.go support time zones with minutes; resolves #3 Dec 21, 2018
iso8601_test.go support time zones with minutes; resolves #3 Dec 21, 2018
json.go golint complete Dec 4, 2018
json_test.go FIX issue with the time set to zero Mar 9, 2018

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