Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some dicts to datetime module #43501

Closed
gregoryp mannequin opened this issue Jun 14, 2006 · 3 comments
Closed

Add some dicts to datetime module #43501

gregoryp mannequin opened this issue Jun 14, 2006 · 3 comments
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@gregoryp
Copy link
Mannequin

gregoryp mannequin commented Jun 14, 2006

BPO 1506296
Nosy @tiran

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2008-01-05.20:11:47.197>
created_at = <Date 2006-06-14.19:35:42.000>
labels = ['type-feature', 'library']
title = 'Add some dicts to datetime module'
updated_at = <Date 2008-01-05.20:11:47.196>
user = 'https://bugs.python.org/gregoryp'

bugs.python.org fields:

activity = <Date 2008-01-05.20:11:47.196>
actor = 'christian.heimes'
assignee = 'none'
closed = True
closed_date = <Date 2008-01-05.20:11:47.197>
closer = 'christian.heimes'
components = ['Library (Lib)']
creation = <Date 2006-06-14.19:35:42.000>
creator = 'gregory_p'
dependencies = []
files = []
hgrepos = []
issue_num = 1506296
keywords = []
message_count = 3.0
messages = ['54831', '54832', '59329']
nosy_count = 3.0
nosy_names = ['zseil', 'gregory_p', 'christian.heimes']
pr_nums = []
priority = 'normal'
resolution = 'wont fix'
stage = None
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue1506296'
versions = []

@gregoryp
Copy link
Mannequin Author

gregoryp mannequin commented Jun 14, 2006

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.

@gregoryp gregoryp mannequin added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Jun 14, 2006
@zseil
Copy link
Mannequin

zseil mannequin commented Apr 3, 2007

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.

@tiran
Copy link
Member

tiran commented Jan 5, 2008

Yeah, use the calendar module.

@tiran tiran closed this as completed Jan 5, 2008
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant