[DB-SIG] ODMG Date/time classes

M.-A. Lemburg lemburg@uni-duesseldorf.de
Thu, 18 Dec 1997 13:39:08 +0100


An aside:

I'll make new constructor names available in the next version
(in an effort to be compatible to the ODMG standard Jim wrote
about)

new			old
---------------------------------------------------
Timestamp		maketime
Date			maketime without time part
DateTimeFromTicks	maketime_fromticks
DateTimeFromCOMDate	maketime_fromCOMDate

The old names will continue too work.

You might have noticed a missing Time constructor. That's
because time is always relative to a date and thus needs
to be an instance of RelativeDateTime with the date part
set to 0.

To Jim: The date/time objects will have to go through the
dbi abstraction module anyway, so we can have plurality
on the user side as long as you provide methods for converting
your instances to DateTime ones (or did you plan to implement
the instances in C too ?) which the DB interface can then
use. You should also provide methods and constructors for
the "absolute date" that Christian Egli's classes use to
make them usable on top of your classes.

BTW, is Christian going to upload his work to some URL
out there ? Would be nice if we could at least reference
them.

-- 
Marc-Andre Lemburg


_______________
DB-SIG  - SIG on Tabular Databases in Python

send messages to: db-sig@python.org
administrivia to: db-sig-request@python.org
_______________