https://github.com/yuya-matsushima/go-dtf
go-dtf convert W3C-DTF string to time.Time.
https://github.com/yuya-matsushima/go-dtf
datetimeformat golang w3c-dtf
Last synced: 4 months ago
JSON representation
go-dtf convert W3C-DTF string to time.Time.
- Host: GitHub
- URL: https://github.com/yuya-matsushima/go-dtf
- Owner: yuya-matsushima
- License: mit
- Created: 2015-12-09T06:15:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-04-04T02:38:10.000Z (about 4 years ago)
- Last Synced: 2024-12-31T06:34:24.299Z (6 months ago)
- Topics: datetimeformat, golang, w3c-dtf
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## go-dtf

go-dtf is a package for golang. go-dtf convert [W3C-DTF](http://www.w3.org/TR/NOTE-datetime) string to time.Time.
### Support Format
check: [Date and Time Formats](http://www.w3.org/TR/NOTE-datetime)
#### 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