[Zope3-dev] Dates and times
Christian Zagrodnick
cz@gocept.com
Tue, 19 Nov 2002 16:03:18 +0100
On Tue, Nov 19, 2002 at 03:45:32PM +0000, Steve Alexander wrote:
> Christian Zagrodnick wrote:
>
> >date says this:
> >
> >% date -d '2000-01-31 + 1 month'
> >Thu Mar 2 00:00:00 CET 2000
>
> My date says this:
>
> [steve@localhost]$ date -d '2000-01-31 + 1 month'
> Thu Mar 2 00:00:00 UTC 2000
>
> I don't think it is very helpful to add precedented precision to a datetime.
>
> Manipulations of dates should return dates or date intervals.
Yes, they should.
% date -d '2000-01-31 + 1 month' +'%Y-%m-%d'
2000-03-02
:)
Anyway. The point was the resulting date.
--
Christian Zagrodnick
gocept gmbh & co. kg - schalaunische strasse 6 - 06366 koethen/anhalt
fon. +49 3496 3099114 - fax. +49 3496 3099118 - mob. +49 179 1463644