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

Add an interface to strftime to the time package #25294

Closed
andrewrussellmalcolm opened this issue May 8, 2018 · 4 comments
Closed

Add an interface to strftime to the time package #25294

andrewrussellmalcolm opened this issue May 8, 2018 · 4 comments

Comments

@andrewrussellmalcolm
Copy link

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

1.10

Does this issue reproduce with the latest release?

N/A

What operating system and processor architecture are you using (go env)?

Linux/amd64

What did you do?

N/A
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
N/A

What did you expect to see?

N/A

What did you see instead?

N/A

I think an interface to strftime would be a useful addition to the time package, making easy formatting of dates

@ghost
Copy link

ghost commented May 8, 2018

Duplicate of #8390

@andrewrussellmalcolm
Copy link
Author

andrewrussellmalcolm commented May 8, 2018 via email

@robpike
Copy link
Contributor

robpike commented May 8, 2018

There are strftime equivalents available outside the main repository. See https://godoc.org/?q=strftime

@ianlancetaylor
Copy link
Contributor

Thanks, but we aren't going to add this to the standard library. It works just as well outside the standard library, and the standard library already has a way to format dates. https://golang.org/doc/faq#x_in_std .

@golang golang locked and limited conversation to collaborators May 8, 2019
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