[ python-Feature Requests-1506296 ] Add some dicts to datetime module

SourceForge.net noreply at sourceforge.net
Tue Apr 3 10:44:40 CEST 2007


Feature Requests item #1506296, was opened at 2006-06-14 21:35
Message generated for change (Comment added) made by zseil
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1506296&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: 5
Private: No
Submitted By: Gregory Petrosyan (gregory_p)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add some dicts to datetime module

Initial Comment:
I think it would be nice to have dicts like

weekdays = {0:'Monday', ...}
isoweekdays = {1:'Monday', ...}
months = {1:'January', ...}

in the datetime module. IMO they are rather usefull.

--
Regards, Gregory.



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

>Comment By: Ziga Seilnacht (zseil)
Date: 2007-04-03 10:44

Message:
Logged In: YES 
user_id=1326842
Originator: NO

The calendar module already has something similar;
calendar.day_name, calendar.day_abbr,
calendar.month_name, calendar.month_abbr.

If you think there is still something missing, it
would be better to add it there.

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

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


More information about the Python-bugs-list mailing list