[Tutor] date and time variables

Sean 'Shaleh' Perry shalehperry@attbi.com
Sun, 27 Jan 2002 13:51:04 -0800 (PST)


> I chose datetime instead of an int type variable because I'm sure to need
> actual time measurements in future.
> 
> Now for the questions:
> 
> 1) How can I get my Shift class to handle this type of data ? Is there an
> analogous data type in python ? Or do I have to 'translate' data to a
> different type when reading / writing to postgres ?

There is a mxdatetime module which does lots of nifty things with times and
dates.

> 2) Where can I find documentation on how to interact with postgres from
> python ?
> 

The python support for postgres is shipped with postgres, so check there for
docs.