Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
time: Improving time layout docs #11312
I just spent some time figuring out how time layouts work. It didn't click for me until I read a post on StackOverflow that essentially copied this block of code below into an answer.
Can the docs show this block fo code, or display a lookup table? After chatting on IRC, it sounded like questions relating to how layouts work appear often. I feel like this would make the docs clearer.
I believe the new (1.6) docs (http://tip.golang.org/pkg/time/#pkg-constants and http://tip.golang.org/pkg/time/#Parse) and example (http://tip.golang.org/pkg/time/#example_Time_Format) example do a much better job than the old docs.
If there are details missing that are covered by the table above, please say so.