Skip to content

blaedj/Week

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gem Version A simple week utility class for ruby. a week always starts on a monday, and will give you the dates for each day of the week.

week = Week.new # not specifying a date defaults to the current date
week.start_date # => Whatever Date.today is

week2 = Week.new(Date.new(2014, 10, 7))
week2.monday   # => #<Date: 2014-10-06 ((2456937j,0s,0n),+0s,2299161j)>
week2.monday.httpdate # => "Mon, 06 Oct 2014 00:00:00 GMT"

About

A simple week utility class

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages