time: support parsing and formatting timestamps that don't use period for fractional seconds #26002
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?What did you do?
https://play.golang.org/p/TEo-WL4gGsq
What did you expect to see?
I expected to be able to use either
2006-01-02 15:04:05,999
or2006-01-02 15:04:05,000
to parse a timestamp like2018-06-15 18:12:22,013
. Especially as some written languages / countries use,
to indicate fractions instead of.
.What did you see instead?
An error indicating that
013
could not be parsed in to,999
.The text was updated successfully, but these errors were encountered: