go-dtf convert W3C-DTF string to time.Time.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.travis.yml
LICENSE
Makefile
README.md
evaluation.go
evaluation_benchmark_test.go
evaluation_test.go
example_test.go
parse.go
parse_benchmark_test.go
parse_test.go

README.md

go-dtf

travis-ci

go-dtf is a package for golang. go-dtf convert W3C-DTF string to time.Time.

Support Format

check: Date and Time Formats

YYYY

ex. 2015

YYYY-MM

ex. 2015-12

YYYY-MM-DD

ex. 2015-12-10

YYYY-MM-DDThh:mmTZD

ex.

  • 2015-12-10T01:17Z
  • 2015-12-10T01:17+00:00
  • 2015-12-10T01:17+09:00

YYYY-MM-DDThh:mm:ssTZD

ex.

  • 2015-12-10T01:17:20Z
  • 2015-12-10T01:17:20+00:00
  • 2015-12-10T01:17:20+09:00

YYYY-MM-DDThh:mm:ss.sTZD

ex.

  • 2015-12-10T01:17:20.123456789Z
  • 2015-12-10T01:17:20.123456789+00:00
  • 2015-12-10T01:17:20.123456789+09:00