On 17/05/11 11:38, Tsolmon Narantsogt wrote: > Hi list > > I'm using datetime.timedelta and i have a problem > > delta = 1 day, 2:30:00 > hours = delta.days * 8 > > how to add 8 + 2:30:00
So you want to limit days to working days? d=datetime.timedelta(days=1, hours=2, minutes=30) wd=datetime.timedelta(hours=d.days*8, seconds=d.seconds) cheers, Pádraig. -- You received this message because you are subscribed to the Google Groups "Python Ireland" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pythonireland?hl=en.
