Open yuzhichang opened 3 years ago
Interesting. I've never seen commas used for the nanosecond part. Is that in the iso8601 spec?
Seems like it is. But this library is similar to most in not supporting the comma. Found discussion here. https://stackoverflow.com/questions/20699705/why-does-the-iso-8601-specification-appear-to-be-universally-ignored-when-it-com
I'll update this issue to be a feature request for supporting commas as an additional decimal separator.
@btubbs go 1.17 supports commas
The package now accepts comma "," as a separator for fractional seconds when parsing and formatting time. For example, the following time layouts are now accepted:
2006-01-02 15:04:05,999999999 -0700 MST
Mon Jan _2 15:04:05,000000 2006
Monday, January 2 15:04:05,000 2006
This library failed to parse these formats.