Skip to content
Time::Span#humanize method
Crystal
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
spec
src
.crystal-version
.editorconfig
.gitignore
.travis.yml
LICENSE
README.md
shard.yml

README.md

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

You can’t perform that action at this time.