You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you write the 2009/04/03 - is it the fourth day of March or the third of April?
The log package uses YYYY/MM/DD - so the order is the one it should be, but the separators make it look like it could be different.
The ISO 8601 uses dashes - as separators, so most developers, libraries and tools see 2009-04-03 and recognize the ISO format.
Why does Go differ from the international standard?
There is no logical reason for that, so it should be changed.
The text was updated successfully, but these errors were encountered:
I have to disagree with calling this a duplicate of #34416. I don't think we need a flag to optionally set the date format to ISO, I think we need to make ISO the default. No flag needed.
If you write the
2009/04/03
- is it the fourth day of March or the third of April?The
log
package usesYYYY/MM/DD
- so the order is the one it should be, but the separators make it look like it could be different.The ISO 8601 uses dashes
-
as separators, so most developers, libraries and tools see2009-04-03
and recognize the ISO format.Why does Go differ from the international standard?
There is no logical reason for that, so it should be changed.
The text was updated successfully, but these errors were encountered: