项目作者: vladfaust

项目描述 :
Time::Span#humanize method
高级语言: Crystal
项目地址: git://github.com/vladfaust/time-span-humanize.git
创建时间: 2019-05-09T13:30:53Z
项目社区:https://github.com/vladfaust/time-span-humanize

开源协议:MIT License

下载


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:

  1. dependencies:
  2. time-span-humanize:
  3. github: vladfaust/time-span-humanize
  4. 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

  1. require "time-span-humanize"
  2. 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