This repository has been archived by the owner. It is now read-only.
time_format.cr v0.1.1
⚠️ This shard is deprecated in favour of https://github.com/vladfaust/time-span-humanize.
TimeFormat
Time spans humanizing module for Crystal.
Supporters
Thanks to all my patrons, I can continue working on beautiful Open Source Software! 🙏
Lauri Jutila, Alexander Maslov, Dainel Vera
You can become a patron too in exchange of prioritized support and other perks
Installation
Add this to your application's shard.yml
:
dependencies:
time_format:
github: vladfaust/time_format.cr
version: ~> 0.1.1
This shard follows Semantic Versioning 2.0.0, so see releases and change the version
accordingly.
Usage
require "time_format"
TimeFormat.auto(0.minutes + 42.seconds) # => 42s
TimeFormat.μs(1.0.milliseconds / 5.0) # => 200μs
Contributing
- Fork it ( https://github.com/vladfaust/time_format.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- @vladfaust Vlad Faust - creator, maintainer
Repository
time_format.cr
Owner
Statistic
- 2
- 0
- 0
- 10
- 0
- over 5 years ago
- September 9, 2017
License
MIT License
Links
Synced at
Thu, 07 Nov 2024 09:41:33 GMT
Languages