[New-bugs-announce] [issue22246] add strptime(s, '%s')

Akira Li report at bugs.python.org
Fri Aug 22 01:48:56 CEST 2014

New submission from Akira Li:

issue12750 makes strftime('%s') portable. For symmetry,
datetime.strptime(s, '%s') could be enabled to return local time as an
aware (to avoid loosing info) datetime object for a given integer
(seconds since the Epoch) timestamp string.

I've uploaded a prototype patch with a draft implementation, docs, and

components: Library (Lib)
files: draft-strptime-%s.diff
keywords: patch
messages: 225624
nosy: akira
priority: normal
severity: normal
status: open
title: add strptime(s, '%s')
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file36430/draft-strptime-%s.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list