date / time
Mark McEahern
marklists at mceahern.com
Wed Apr 3 16:06:17 EST 2002
I haven't followed this post. For all I know, the OP has their solution.
For what it's worth, mx.DateTime works like a charm every time. Consider
this:
import mx.DateTime
years = range(1999, 2010, 1)
dates = [mx.DateTime.Parser.DateTimeFromString("3/1/%s" % y) for y in years]
for d in dates:
print "One day before %s is %s." % (d, d -
mx.DateTime.RelativeDateTime(days=1))
Cheers,
// m
More information about the Python-list
mailing list