time_format

Convert time in human readable format with ease
0.1.0 released

TimeFormat Build Status Docs GitHub release

Tiny shard for humanizing time spans.

Installation

Add this to your application's shard.yml:

dependencies:
  time_format:
    github: vladfaust/time_format.cr
    version: ~> 0.1.0

Usage

require "time_format"

TimeFormat.auto(0.minutes + 42.seconds) # => 42s
TimeFormat.μs(1.0.milliseconds / 5.0) # => 200μs

Contributing

  1. Fork it ( https://github.com/vladfaust/time_format.cr/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

time_format:
  github: vladfaust/time_format.cr
  version: ~> 0.1.0
License MIT
Crystal 0.23.1

Authors

Dependencies 0

Development Dependencies 0

Last synced .
search fire star recently