How to find out the next Friday using RelativeDateTime

vj vinjvinj at gmail.com
Thu Mar 23 18:37:13 CET 2006


I'm doing:

a = now()
delta = ReltaiveDateTime(days=+6, weekday(mx.DateTime.Friday, 0))
Next Friday: a+delta

a: march 23
a+delta: Gives me March 31st and not March 24th

Any ideas?




More information about the Python-list mailing list