Time duration

Difference in hours and minutes, between two times

Page 1 of 1

1 Replies - 3838 Views - Last Post: 02 November 2008 - 11:09 PM Rate Topic: -----

#1 antonius  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 02-November 08

Time duration

Post icon  Posted 02 November 2008 - 07:07 PM

	
def duration(self):
		timedelta = self.end - self.start
		return timedelta.seconds / 3600



the format of the time fields: self.end and self.start are HH:mm:ss

help! thank you.
Is This A Good Question/Topic? 0
  • +

Replies To: Time duration

#2 girasquid  Icon User is offline

  • Barbarbar
  • member icon

Reputation: 108
  • View blog
  • Posts: 1,825
  • Joined: 03-October 06

Re: Time duration

Posted 02 November 2008 - 11:09 PM

And..what's the problem?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1