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

Strftime or YYYY-MM-DD hh:mm:ss alternative time formatting #40287

Closed
sirkon opened this issue Jul 18, 2020 · 2 comments
Closed

Strftime or YYYY-MM-DD hh:mm:ss alternative time formatting #40287

sirkon opened this issue Jul 18, 2020 · 2 comments

Comments

@sirkon
Copy link

sirkon commented Jul 18, 2020

Hi!

Would it be a viable option to introduce alternative time formatting approach?

It is long time already I only code Go, everything is good, but time.Format proves again and again it was not really good decision for folks like me: I still remember how to do formatting with strftime despite years I didn't touch it, yet I need to go to time.RFC3339 to remember what numbers I need to apply after just a couple of months when I was not using it.

This may be different for others of course, but I may be not alone.

So, may be to introduce time.Strftime?

Another alternative could be YYYY-MM-DD hh:mm:ss where, unlike in Java, everything longer than an hour + zone format uses capitals and everything else uses lowercase. IMO it is even easier to memorize than strftime format.

@akavel
Copy link
Contributor

akavel commented Jul 18, 2020

See also: #25572

@ianlancetaylor
Copy link
Contributor

Dup of #444, #8390, #25294.

This doesn't seem to add anything that was not covered by those earlier issues, so closing as a duplicate.

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

4 participants