From: Reinder Verlinde Date: 2005-11-18T09:07:18+09:00 Subject: Re: Time.yesterday ? :) In article , Michael Campbell wrote: > Marcin Jurczuk writes: > > > Hello group. > > > > Is there any simple method to get Time object like Time.now but with > > yesterday date, without worrying about end of month or begining new one ? > > Pedantic to be sure, but keep in mind all the variations on the > "... - 86400" scheme universally fail during the Daylight Savings > Time cutovers that some of us are unfortunate to have to suffer. > > Probably this won't affect you. Even more pedantic: even if it does not, the assumption that every day has 86400 seconds is still incorrect. A day with a leap second has 86401 or 86399 (has not happened yet) seconds. Reinder