here are a few tuts that go into more detail http://effbot.org/librarybook/datetime.htm http://seehuhn.de/pages/pdate