We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Go has a [decent model for date formatting] (https://gosamples.dev/date-time-format-cheatsheet/)based on the date 01/02 03:04:05PM '06 -0700. Each number in the string corresponds to a particular field:
01/02 03:04:05PM '06 -0700
01
02
03
04
05
06
07
The date 2001-02-03 04:05:06.007PM -0800, however, has fields sorted by duration and therefore is less ambiguous.
2001-02-03 04:05:06.007PM -0800
2001
2
Feb
February
3
4
16
007
-0800
For example:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Go has a [decent model for date formatting] (https://gosamples.dev/date-time-format-cheatsheet/)based on the date
01/02 03:04:05PM '06 -0700
. Each number in the string corresponds to a particular field:01
- month02
- day03
- hour (12h)04
- minute05
- second06
- year07
- time zone offsetThe date
2001-02-03 04:05:06.007PM -0800
, however, has fields sorted by duration and therefore is less ambiguous.01
,2001
- year (2 digit or 4 digit)02
,2
,Feb
,February
- month (with or without leading zero, abbreviated or full name)03
,3
- day (with or without leading zero)04
,4
- hour (12h, with or without leading zero)16
- hour (24h) (TODO how do you get 24h time without a leading zero)05
- minute06
- second007
- millisecond-0800
- UTC offsetFor example:
The text was updated successfully, but these errors were encountered: