Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> For more information about the formats and the definition of the reference time, see the documentation for ANSIC and the other constants defined by this package.

I find the information at http://golang.org/pkg/time/#pkg-constants very explanatory.

What do you think is unclear about the documentation?



I just didn't "get it" as I had no idea what it meant by a reference time. Normally a time is formatted like %Y-%m-%d and so on, these examples look nothing like that so I had no idea that 2006 is how they spell %Y, 01 is %m, 02 is %d, etc. If you have grown up with strptime and friends, the Go version and documentation makes literally no sense. Then it suddenly clicks ("ah! they do that?!") and it is perfectly obvious.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: