Re: How can I add a duration object to a DateTime Set max object?

2004-12-02 Thread Ron Hill
Hi Flavio, Ron Hill wrote: Do you think we can add to the docs to state these are getter methods? something like (snipped) How about: These methods return a copy of the actual boundary values, meaning you can't use them to set/change the value. That sounds much

Re: How can I add a duration object to a DateTime Set max object?

2004-12-02 Thread fglock
Ron Hill wrote: Actually I run the reports on the first of the month for the previous month so I had to do this my $month = DateTime-today-truncate( to = 'month' )-subtract( months =1); $dt_span = DateTime::Span-from_datetimes( start = $month-clone,

Re: How can I add a duration object to a DateTime Set max object?

2004-12-02 Thread John Siracusa
On Thu, 2 Dec 2004 13:02:16 GMT, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ron Hill wrote: Actually I run the reports on the first of the month for the previous month so I had to do this my $month = DateTime-today-truncate(to = 'month')-subtract(months=1); [...] This one behaves better - it