time-span-humanize v0.1.0

Time::Span#humanize method

Time::Span#humanize

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

Time::Span#humanize method for Crystal.

Become a Patron

Installation

Add this to your application's shard.yml:

dependencies:
  time-span-humanize:
    github: vladfaust/time-span-humanize
    version: ~> 0.1.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"
42.milliseconds.humanize # => "42ms"

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

Repository

time-span-humanize

Owner
Statistic
  • 5
  • 0
  • 0
  • 0
  • 0
  • over 5 years ago
  • May 9, 2019
License

MIT License

Links
Synced at

Sun, 22 Dec 2024 09:58:55 GMT

Languages