On Thu 2003/03/13 11:21:04 CST, Dave Rolsky <[EMAIL PROTECTED]> writes: > On Thu, 13 Mar 2003 [EMAIL PROTECTED] wrote: > > truncate( to=>'month' ) is setting the month to 1. I think it should > > only do that if I asked to truncate to 'year', isn't it? Or maybe I'm > > doing something wrong. > > I guess this depends on your expectations. What do others think? Does > truncating to the month include the month or not?
I expect the same as fglock. If I'm truncating to something, I expect that to be the smallest meaningful unit, so: truncate(to=>'month') on 3/17/2003 = 3/1/2003 truncate(to=>'year') on 3/17/2003 = 1/1/2003 etc
