Skip to content

Instantly share code, notes, and snippets.

@mortymacs
Last active December 11, 2022 11:31
Show Gist options
  • Save mortymacs/d2e39742f03643ed0ed95adcf9e1d3a2 to your computer and use it in GitHub Desktop.
Save mortymacs/d2e39742f03643ed0ed95adcf9e1d3a2 to your computer and use it in GitHub Desktop.
DataTime format in Go
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"
@mortymacs
Copy link
Author

mortymacs commented Dec 11, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment