From: Alex Gutteridge Date: 2012-11-19T23:44:07+09:00 Subject: Re: Magical 57.6 minutes in Time On 19.11.2012 14:39, Todd Benson wrote: > On Mon, Nov 19, 2012 at 8:37 AM, Alex Gutteridge > wrote: >> On 19.11.2012 14:26, Todd Benson wrote: >>> >>> irb(main):80:0> RUBY_VERSION >>> => "1.9.3" >>> irb(main):81:0> system("uname -a") >>> Linux krank 3.5.0-18-generic #29-Ubuntu SMP Fri Oct 19 10:27:31 UTC >>> 2012 i686 i686 i686 GNU/Linux >>> => true >>> irb(main):82:0> require 'date' >>> => false >>> irb(main):083:0> Time.new(2012, 11, 3, 12, 00) - Time.new(2012, 10, >>> 3, 12, 00) >>> => 2678400.0 >>> irb(main):084:0> _ / 3600 / 24 >>> => 31.0 >>> irb(main):085:0> Time.new(2012, 11, 4, 12, 00) - Time.new(2012, 10, >>> 4, 12, 00) >>> => 2682000.0 >>> irb(main):086:0> _ / 3600 / 24 >>> => 31.041666666666668 >>> irb(main):087:0> Time.new(2013, 1, 4, 12, 00) - Time.new(2012, 12, >>> 4, 12, >>> 00) >>> => 2678400.0 >> >> >> If I understand your question (forgive me if not), have a think >> about what >> happened on November 4th this year. As a hint, I live in the UK and >> the >> answer is different on my machine... >> >> -- >> Alex Gutteridge >> > > > > Why not exactly 60 minutes, though? Not sure where you get your 57.6mins from to be honest (a rounding error?). I get 745 hours in that span of seconds (744 hours is 31 days exactly): > 2682000 / 60 / 60 [1] 745 > (745-1)/24 [1] 31 -- Alex Gutteridge