[ python-Feature Requests-1296581 ] datetime.replace could take a dict
SourceForge.net
noreply at sourceforge.net
Thu Sep 22 10:42:27 CEST 2005
Feature Requests item #1296581, was opened at 2005-09-20 18:56
Message generated for change (Settings changed) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&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: None
Status: Open
Resolution: None
Priority: 1
Submitted By: Tom Lynn (tlynn)
>Assigned to: Reinhold Birkenfeld (birkenfeld)
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=355470&aid=1296581&group_id=5470
More information about the Python-bugs-list
mailing list