Skip to content

Instantly share code, notes, and snippets.

@Veejay Veejay/date.rb
Created Oct 30, 2012

Embed
What would you like to do?
Date handling
irb(main):009:0> d = Date.new(2012, 12, 31)
=> #<Date: 2012-12-31 ((2456293j,0s,0n),+0s,2299161j)>
irb(main):010:0> d.cweek
=> 1
irb(main):011:0> d.year
=> 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.