Awesome Go

tuesday

CategoryDate and Time
SubcategoryDate and Time
Stars0

Ruby-compatible Strftime function

About tuesday

Tuesday: Ruby-Compatible Strftime for Go

Test badge Golangci-lint badge Coveralls badge Go Report Card badge Godoc badge MIT License

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.

Install

go get gopkg.in/osteele/tuesday.v1 # latest snapshot

go get -u github.com/osteele/tuesday # development version

References

License

MIT License

Frequently Asked Questions

What is tuesday?

tuesday is a Date and Time library for the Go programming language. Ruby-compatible Strftime function

How do I install tuesday?

Install tuesday with the Go module system using `go get osteele/tuesday`. Check the repository for the current installation instructions.

What category does tuesday belong to?

tuesday is listed under Date and Time, specifically Date and Time.

← Back to Date and Time