This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Add some dicts to datetime module
Type: enhancement Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, gregory_p, zseil
Priority: normal Keywords:

Created on 2006-06-14 19:35 by gregory_p, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg54831 - (view) Author: Gregory Petrosyan (gregory_p) Date: 2006-06-14 19:35
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.

msg54832 - (view) Author: Ziga Seilnacht (zseil) * (Python committer) Date: 2007-04-03 08:44
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.
msg59329 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2008-01-05 20:11
Yeah, use the calendar module.
History
Date User Action Args
2022-04-11 14:56:18adminsetgithub: 43501
2008-01-05 20:11:47christian.heimessetstatus: open -> closed
resolution: wont fix
messages: + msg59329
nosy: + christian.heimes
2006-06-14 19:35:42gregory_pcreate