Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time package should have some ISO 8601 date & date/time formats #2141

Closed
mark-summerfield opened this issue Aug 9, 2011 · 3 comments
Closed

Comments

@mark-summerfield
Copy link

I think the time package should have some ISO 8601 date & date/time formats, e.g.

ISO8601Date = "2006-01-02"
ISO8601DateTime = "2006-01-02T15:04:05Z"
@rsc
Copy link
Contributor

rsc commented Aug 9, 2011

Comment 1:

Your ISO8601DateTime is time.RFC3339.
There are no date-only formats provided.
The nice thing about package time is that
you can just write "2006-01-02" in the
calling code, and it's even clearer than
using a named constant.
Russ

Owner changed to @robpike.

@peterGo
Copy link
Contributor

peterGo commented Aug 9, 2011

Comment 2:

tracking issue for things that could be better about package time.
issue #1594: package time changes

@robpike
Copy link
Contributor

robpike commented Aug 9, 2011

Comment 3:

Status changed to WontFix.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc unassigned robpike Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants