Skip to content

Ruby gem for getting how many minutes, hours, days, weeks, months, years have passed since the specified date.

License

Notifications You must be signed in to change notification settings

mikaneco/sincer

Repository files navigation

Sincer

Gem Version GitHub Actions CI

Description

A gem providing a simple interface for getting how many minutes, hours, days, weeks, months, years have passed since or will pass until the specified date.

Usage

require 'sincer'

Sincer.rephrase('2021-01-01 00:00:00')
 # => "1 minute ago if it is 2021-01-01 00:01:00"

Installation

Install the gem and add to the application's Gemfile by executing:

$ bundle add sincer

If bundler is not being used to manage dependencies, install the gem by executing:

$ gem install sincer

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/mikaneco/sincer. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Sincer project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About

Ruby gem for getting how many minutes, hours, days, weeks, months, years have passed since the specified date.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published