-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.
Milestone
Description
It seems like the reference date, being a novel idea in Go's time package, is a stumbling block for developers new to Go. I think it's worth adding a paragraph to the documentation for Parse and Format that is extremely explicit. Something along the lines of:
The following values are recognized:
month: 1 01 Jan January
day: 2 02 _2
hour: 3 03 15
minute: 4 04
second: 5 05 05.0 (etc.)
year: 6 06 2006
timezone: -07 -0700 -07:00 MST
day of week: Mon Monday
meridiem: pm PM
jimmyfrasche, zephyrtronium and smasher164
Metadata
Metadata
Assignees
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.