Skip to content
Ruby-compatible strftime for golang
Go Ruby Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
testdata Simplify tests Aug 12, 2017
.appveyor.yml Set appveyor time zone Aug 12, 2017
LICENSE Initial Aug 10, 2017
strftime_test.go VMS month is upper case Aug 14, 2017

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 strftimes:

  • 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.


go get # latest snapshot

go get -u # development version



MIT License

You can’t perform that action at this time.