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

There is no escape character for time.Format #31226

Closed
curusarn opened this issue Apr 3, 2019 · 1 comment
Closed

There is no escape character for time.Format #31226

curusarn opened this issue Apr 3, 2019 · 1 comment

Comments

@curusarn
Copy link

curusarn commented Apr 3, 2019

There is no escape character. Therefore numbers are always interpreted as standard chunks and can't be used as a delimiters.

@ianlancetaylor
Copy link
Contributor

That is true. We can't change it now, though, as it would break existing callers of time.Format. You don't have to generate your complete final string using time.Format; you can format the time parts separately from the rest of the string.

@golang golang locked and limited conversation to collaborators Apr 2, 2020
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

3 participants