Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue5788] datetime.timedelta is inconvenient to use...

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Nov 25, 2009, 3:04 PM

Post #1 of 4 (251 views)
Permalink
[issue5788] datetime.timedelta is inconvenient to use...

Antoine Pitrou <pitrou [at] free> added the comment:

The patch is committed in r76529 (trunk) and r76530 (py3k). Thank you!

----------
resolution: -> fixed
stage: patch review -> committed/rejected
status: open -> closed

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue5788>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 26, 2009, 12:13 AM

Post #2 of 4 (235 views)
Permalink
[issue5788] datetime.timedelta is inconvenient to use... [In reply to]

Mark Dickinson <dickinsm [at] gmail> added the comment:

A late note: this would be redundant if the oft-requested division of
timedeltas were implemented: t.total_seconds could then be spelt

t/timedelta(seconds=1)

with the advantage that there would then be a natural way to spell
t.total_days or t.total_hours as well.

----------
nosy: +mark.dickinson

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue5788>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 26, 2009, 12:14 AM

Post #3 of 4 (234 views)
Permalink
[issue5788] datetime.timedelta is inconvenient to use... [In reply to]

Mark Dickinson <dickinsm [at] gmail> added the comment:

That should be t.total_seconds(), of course.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue5788>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 26, 2009, 4:17 AM

Post #4 of 4 (241 views)
Permalink
[issue5788] datetime.timedelta is inconvenient to use... [In reply to]

Antoine Pitrou <pitrou [at] free> added the comment:

> A late note: this would be redundant if the oft-requested division of
> timedeltas were implemented: t.total_seconds could then be spelt
>
> t/timedelta(seconds=1)

It would be less obvious, though.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue5788>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.