📚 tuesday - Awesome Go Library for Date and Time
Ruby-compatible Strftime function.
🏷️ Date and Time
📂 Libraries for working with dates and times.
⭐ 12 stars
Detailed Description of tuesday
Tuesday: Ruby-Compatible Strftime for Go
This package provides a function Strftime
that is compatible with Ruby's Time.strftime
.
It provides additional flags and conversions beyond C stdlib-like strftime
s:
- padding flags, e.g.
%-m
,%_m
,%0e
- case change flags, e.g.
%^A
,%#b
- field widths:
%03e
,%3N
,%9N
- Ruby-specific conversions such as
%s
,%N
,%:z
,%::z
It was developed for use with in Liquid and Gojekyll.
Install
go get gopkg.in/osteele/tuesday.v1
# latest snapshot
go get -u github.com/osteele/tuesday
# development version
References
License
MIT License