Project

fuzzy_time

0.0
No commit activity in last 3 years
No release in over 3 years
Extends Ruby's Time class with a new fuzzy method that returns time in a human-readable format.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
 Project Readme

fuzzy_time

Extends Ruby's Time class with a new fuzzy method that returns the time in a human-readable format.

Inspired by the FuzzyClock OS X app from Objectpark.

Installation

gem install fuzzy_time

Usage

require 'fuzzy_time'

Time.now.fuzzy
# => "half past three"

Time.local(2013, 1, 1, 5, 46).fuzzy
# => "quarter to six"

Time.local(2013, 1, 1, 9, 0).fuzzy
# => "nine o'clock"