Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Return a random time for today

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 gem-public_cert.pem
Octocat-spinner-32 timetoday.gemspec
README.md

Introducing the TimeToday gem

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

require 'timetoday'

# return any time today
TimeToday.any    #=> 2014-02-15 09:25:49 +0100

# return a future time today
TimeToday.future #=> 2014-02-15 19:23:33 +0100

# return a random time within a range
TimeToday.between '5pm', '7pm' #=> 2014-02-15 17:40:12 +0000 

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

timetoday gem random time today

Something went wrong with that request. Please try again.