[ python-Bugs-1296581 ] datetime.replace could take a dict

SourceForge.net noreply at sourceforge.net
Tue Sep 20 18:57:24 CEST 2005


Bugs item #1296581, was opened at 2005-09-20 16:56
Message generated for change (Settings changed) made by tlynn
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1296581&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Feature Request
Status: Open
Resolution: None
>Priority: 1
Submitted By: Tom Lynn (tlynn)
Assigned to: Nobody/Anonymous (nobody)
Summary: datetime.replace could take a dict

Initial Comment:
Python 2.4.1.

datetime.replace uses its kwargs to specify the fields,
which I found a bit surprising.  It could also take an
equivalent dict.  (Failing that, it could have a fuller
docstring.)

What I was actually trying to do was round to the
nearest half hour.  floor and ceil methods taking a
timedelta would be nice too.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1296581&group_id=5470


More information about the Python-bugs-list mailing list