python datetime repository

  • Thread starter Sakesun Roykiattisak
  • Start date
S

Sakesun Roykiattisak

During the moment of learning and using python + various API, I 've
come across many kinds of datetime classes.

python 2.3 datetime.datetime
xmlrpclib.DateTime
pywintypes.Time
mxDateTime
Zope's DateTime
pyical's DateTime

Anybody know any other python datetime class out there ? Just wonder if
there are more.

According to Bruce Eckel, "Python reduce clutter". Perhaps datetime
clutter is badly need reduction.
 
P

Peter Hansen

Sakesun said:
During the moment of learning and using python + various API, I 've
come across many kinds of datetime classes.

python 2.3 datetime.datetime
xmlrpclib.DateTime
pywintypes.Time
mxDateTime
Zope's DateTime
pyical's DateTime

Anybody know any other python datetime class out there ? Just wonder if
there are more.

According to Bruce Eckel, "Python reduce clutter". Perhaps datetime
clutter is badly need reduction.

The list above contains one platform-specific case which can't just be
made to disappear, and at least three types which predate the new
standard datetime module. I don't know what pyical is but I suspect
it's the same sort of thing.

The best way to reduce the clutter is merely to start using the
new datetime module where you can, and gradually refactor old
code where possible to use it.

Basically, "give folks a break, the standard datetime is new!"

-Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,181
Messages
2,570,970
Members
47,537
Latest member
BellCorone

Latest Threads

Top