3 ms·
Nope, Time handles all those things better since Ruby 1.8.7/1.9.3 when it gained support date/times into the far future. Until then it was liable to the Year 20
by pixeltrix 11y ago
Nope, Time handles all those things better since Ruby 1.8.7/1.9.3 when it gained support date/times into the far future. Until then it was liable to the Year 2038 problem: http://en.wikipedia.org/wiki/Year_2038_problem http://en.wikipedia.org/wiki/Year_2038_problem
- peterwwillis 11y agoLooking into it further, apparently neither Time nor DateTime account for leap seconds (though they support a 60th second), and only the Time class seems to support daylight savings, according to the docs. So that's pretty weird.