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.
require 'sincer'
Sincer.rephrase('2021-01-01 00:00:00')
# => "1 minute ago if it is 2021-01-01 00:01:00"
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
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.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Sincer project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.