time_format
Version, currently 0.1.02 versions
- 0.1.1latestMay 16, 2018
- 0.1.0not indexedMay 9, 2019
github.com/vladfaust/time_format.cr
Time spans formatting made simple ⌚️
Nothing has been indexed for 0.1.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
time_format:
github: vladfaust/time_format.cr
version: ~> 0.1.0Then run:
shards installshard.yml
No shard.yml has been indexed for 0.1.0. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
TimeFormat
Time spans humanizing made simple for Crystal.
Installation
Add this to your application's shard.yml:
dependencies:
time_format:
github: vladfaust/time_format.cr
version: ~> 0.1.0 # Find an actual version in releases
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
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.0- Tagged
- May 9, 2019
- Commit
30676d3712cb- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/vladfaust/time_format.cr
Metadata
- Created
- Aug 16, 2026
- Updated
- Aug 16, 2026
- Synced
- Aug 16, 2026
- Versions
- 2