From: Michael Campbell Date: 2005-11-19T01:03:19+09:00 Subject: Re: Time.yesterday ? :) Reinder Verlinde writes: > 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. *Chuckle* I completely forgot about that too; good catch. =) -- I tend to view "truly flexible" by another term: "Make everything equally hard". -- DHH