time-span-humanize v0.1.0
Time::Span#humanize
Time::Span#humanize
method for Crystal.
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.0
→0.2.0
is breaking and0.1.0
→0.1.1
is not.
Usage
require "time-span-humanize"
42.milliseconds.humanize # => "42ms"
Contributing
- Fork it ( https://github.com/vladfaust/time-span-humanize/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'feat: some feature') using Angular style commits
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- Vlad Faust - creator and maintainer
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