Skip to content

tebeka/strftime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strftime for Go

Test License: MIT go.dev reference

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 github.com/tebeka/strftime

Example

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

Contact

https://github.com/tebeka/strftime

About

strftime for Go

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages