Skip to content

datetime.strftime with %Y no longer outputs leading zeros #76376

Closed
@davechallis

Description

@davechallis
BPO 32195
Nosy @ronaldoussoren, @abalkin, @ned-deily, @serhiy-storchaka, @davechallis
Superseder
  • bpo-13305: datetime.strftime("%Y") not consistent for years < 1000
  • 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 2017-12-01.23:01:16.411>
    created_at = <Date 2017-12-01.14:39:29.365>
    labels = ['type-bug', 'library']
    title = 'datetime.strftime with %Y no longer outputs leading zeros'
    updated_at = <Date 2017-12-01.23:01:16.410>
    user = 'https://github.com/davechallis'

    bugs.python.org fields:

    activity = <Date 2017-12-01.23:01:16.410>
    actor = 'ned.deily'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-12-01.23:01:16.411>
    closer = 'ned.deily'
    components = ['Library (Lib)']
    creation = <Date 2017-12-01.14:39:29.365>
    creator = 'davechallis'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32195
    keywords = []
    message_count = 6.0
    messages = ['307389', '307398', '307401', '307413', '307415', '307416']
    nosy_count = 5.0
    nosy_names = ['ronaldoussoren', 'belopolsky', 'ned.deily', 'serhiy.storchaka', 'davechallis']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '13305'
    type = 'behavior'
    url = 'https://bugs.python.org/issue32195'
    versions = ['Python 3.6']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions