[Tutor] How do you manipulate dates? ie. one month before 1/1/2001 = ??

Dan Tropp dan@webmind.com
Thu, 28 Jun 2001 11:15:24 +1000


The time module allows you to print, format and create time tuples and epoch
time, but how do you calculate the date in two days, or three months ago
(including rolling the months and accounting for daylight savings time??

utc time - 60*60*24*numDays does not work for daylightsavings changes.

I guess I'm looking for something like java.util.Calendar.add(DAY_OF_MONTH,
numDays)

Dan Tropp