Skip to content

patricklewis/fuzzy_time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

Human-readable time formatting for Ruby.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published