Days Since January 1st, 2008
Join the DZone community and get the full member experience.Join For Free
// I'm in a challenge to do one pushup and one crunch for each day of the new year. This little Ruby snippet will tell me how many I have to do!
(DateTime.now - DateTime.new(2008,1,1)).to_i
Opinions expressed by DZone contributors are their own.