Skip to content

Latest commit

 

History

History

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/strftime

Example

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

Contact

https://bitbucket.org/tebeka/strftime

License

MIT (see LICENSE.txt)