Time::Span#humanize

Built with Crystal Build status API Docs Releases Awesome vladfaust.com Patrons count Gitter chat

Time spans humanizing module for Crystal.

Become Patron

Installation

Add this to your application's shard.yml:

dependencies:
  time-span-humanize:
    github: vladfaust/time-span-humanize
    version: ~> 0.2.0

This shard follows Semantic Versioning v2.0.0, so check releases and change the version accordingly.

Note that until Crystal is officially released, this shard would be in beta state (0.*.*), with every minor release considered breaking. For example, 0.1.00.2.0 is breaking and 0.1.00.1.1 is not.

Usage

require "time-span-humanize"

542.11.milliseconds.humanize # => "542ms"

Contributing

  1. Fork it ( https://github.com/vladfaust/time-span-humanize/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'feat: some feature') using Angular style commits
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors