Introducing the TimeToday gem

# gem author: James Robertson
# to install: gem install timetoday

require 'timetoday'

# return any time today
TimeToday.any    #=> 2011-06-22 09:25:49 +0100

# return a future time today
TimeToday.future #=> 2011-06-22 19:23:33 +0100

The TimeToday returns a random time object for today. The time can either be any time today or any time between now and midnight.

Resources

Tags:
Source:
2317hrs.txt
Published:
24-04-2012 23:17