[Tutor] time challange

nephish nephish at xit.net
Thu Sep 22 15:08:01 CEST 2005

Hey there,

i use mx.DateTime.RelativeDateTimeDiff to get the difference between 
date_x and date_y.
what i need to do divide this amount of time into 20 different times 
that spaced out between the date_x and the date_y.

so if the difference between date_x and date_y is 20 hours, i need 20 
DateTimes that are one hour apart from each other. If the difference is 
40 minutes, i need the 20 DateTimes to be spaced out 2 minutes from each 

what would be a way to pull this off? i have looked at the docs for 
and there seems to be a divide operation, but i dont quite know what it 
is talking about
with the deltas.

anyone have a good start point?


More information about the Tutor mailing list