-
Notifications
You must be signed in to change notification settings - Fork 18k
time: Parse does not parse format "1504059999" #23134
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
Comments
I could not find a good reason in your code nor in the In particular, after some debugging, I came to this comment:
In other words, any number of Without knowing too much about how the |
To clarify - |
Since you know the exact layout, it's easy enough to modify the input string to have the dot that the format requires. I'm not sure this is worth changing. |
I'm already working around it by modifying the input string and adding a I was just wondering that there is a Of course I can give it a try if you'd like a PR. Never done that for the go standard library though. |
I would say we first need to decide if we want this change or not. That is, to allow |
There is no decimal point here. This is probably working best as is. |
Just to throw in another argument: |
What version of Go are you using (
go version
)?go version go1.9.2 darwin/amd64
Does this issue reproduce with the latest release?
go 1.9.2 is currently the latest release
What operating system and processor architecture are you using (
go env
)?darwin/amd64
What did you do?
I try to parse a time format without any punctuation. Date is not of importance here.
https://play.golang.org/p/-YxQX44J8F
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: