Skip to content

datetime.strftime dislikes years before 1900 #45329

Description

@benno
mannequin
BPO 1777412
Nosy @loewis, @birkenfeld, @abalkin, @vstinner, @giampaolo, @merwok
Dependencies
  • bpo-7989: Add pure Python implementation of datetime module to CPython
  • bpo-10827: Functions in time module should support year < 1900 when accept2dyear = 0
  • Files
  • strftime-pre-1900.patch: patch to use strftime directly from datetime instead of going through the time module, and remove the pre-1900 restriction
  • strftime-pre-1900.patch
  • issue1777412.diff
  • datetime_strftime_nolimit.diff
  • strftime_1_9999.patch
  • 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 = 'https://github.com/abalkin'
    closed_at = <Date 2011-01-08.16:40:31.480>
    created_at = <Date 2007-08-20.03:36:14.000>
    labels = ['type-feature', 'library']
    title = 'datetime.strftime dislikes years before 1900'
    updated_at = <Date 2011-01-08.16:40:31.478>
    user = 'https://bugs.python.org/benno'

    bugs.python.org fields:

    activity = <Date 2011-01-08.16:40:31.478>
    actor = 'vstinner'
    assignee = 'belopolsky'
    closed = True
    closed_date = <Date 2011-01-08.16:40:31.480>
    closer = 'vstinner'
    components = ['Library (Lib)']
    creation = <Date 2007-08-20.03:36:14.000>
    creator = 'benno'
    dependencies = ['7989', '10827']
    files = ['10253', '19157', '20307', '20309', '20310']
    hgrepos = []
    issue_num = 1777412
    keywords = ['patch']
    message_count = 26.0
    messages = ['55156', '55157', '66535', '66541', '66584', '66585', '75727', '75731', '100163', '100165', '107167', '110792', '118163', '118212', '118328', '118331', '125478', '125725', '125736', '125738', '125740', '125741', '125742', '125743', '125748', '125792']
    nosy_count = 9.0
    nosy_names = ['loewis', 'georg.brandl', 'davidfraser', 'belopolsky', 'benno', 'vstinner', 'giampaolo.rodola', 'eric.araujo', 'kiorky']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'commit review'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue1777412'
    versions = ['Python 3.2']

    Metadata

    Metadata

    Assignees

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions