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 tests. ---------- 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 <rep...@bugs.python.org> <http://bugs.python.org/issue22246> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com