You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
datetime: Full set of format codes applies to strftime only #78430
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=Noneclosed_at=Nonecreated_at=<Date2018-07-27.15:07:15.820>labels= ['3.7', '3.8', '3.9', '3.10', 'type-feature', 'docs']
title='Full set of format codes applies to strftime only'updated_at=<Date2020-05-31.13:44:57.308>user='https://github.com/vkatsikaros'
changed the title [-]Full set of format codes applies to strftime only[/-][+]datetime: Full set of format codes applies to strftime only[/+]on Sep 13, 2026
Activity
str*timeto C11 format codes #140715encukou commentedon Feb 9, 2026
This wasn't fully addressed in #140716.
StanFromIreland commentedon Feb 9, 2026
Indeed, but I consider it a duplicate of its issue.
[-]Full set of format codes applies to strftime only[/-][+]datetime: Full set of format codes applies to strftime only[/+]vadmium commentedon Sep 13, 2026
C Python implements strptime itself in Lib/_strptime.py. That explains why the original poster’s strftime call worked but strptime did not.
The %s code (lowercase) is listed (“number of seconds since the Epoch”) in the Debian (glibc) manual page Stan linked.
StanFromIreland commentedon Sep 13, 2026
Let's discuss on #140715.
str*timeto C11 format codes #140715