Source

strftime / README.rst

Full commit

strftime For Go

Q: Why, we already have time.Format?

A: Yes, but it becomes tricky to use if if you have string with things other than time in them. (like /path/to/%Y/%m/%d/report)

Installing

go get bitbucket.org/tebeka/strtime

Example

str, err := strftime.Format("%Y/%m/%d", time.Now())

License

MIT (see LICENSE.txt)