Last active
December 11, 2022 11:31
-
-
Save mortymacs/d2e39742f03643ed0ed95adcf9e1d3a2 to your computer and use it in GitHub Desktop.
DataTime format in Go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LongMonth // "January" | |
Month // "Jan" | |
NumMonth // "1" | |
ZeroMonth // "01" | |
LongWeekDay // "Monday" | |
WeekDay // "Mon" | |
Day // "2" | |
UnderDay // "_2" | |
ZeroDay // "02" | |
UnderYearDay // "__2" | |
ZeroYearDay // "002" | |
Hour // "15" | |
Hour12 // "3" | |
ZeroHour12 // "03" | |
Minute // "4" | |
ZeroMinute // "04" | |
Second // "5" | |
ZeroSecond // "05" | |
LongYear // "2006" | |
Year // "06" | |
PM // "PM" | |
pm // "pm" | |
TZ // "MST" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source: https://go.dev/src/time/format.go