Skip to content

Provides casual time strings, such as "about a minute ago"

License

Notifications You must be signed in to change notification settings

barrydrink/friendly-time-ruby

Repository files navigation

FriendlyTime

Build Status Code Climate Test Coverage Issue Count license Gem Gem

Provides casual time strings for events in the past. E.g. "about 10 minutes ago".

Installation

$ gem install friendly_time

Usage

friendly_time -t 1481033316000
//outputs: seconds ago

friendly_time -t 1481033316000 -f 14810333150
//outputs: years from now

See also the unit tests.

Development

gem install bundler

Get the development dependencies

bundle install

About

Provides casual time strings, such as "about a minute ago"

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages