homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: add strptime(s, '%s')
Type: enhancement Stage: patch review
Components: Library (Lib) Versions: Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: belopolsky Nosy List: akira, belopolsky, p-ganssle
Priority: normal Keywords: patch

Created on 2014年08月21日 23:48 by akira, last changed 2022年04月11日 14:58 by admin.

Files
File name Uploaded Description Edit
draft-strptime-%s.diff akira, 2014年08月22日 00:02 review
Messages (3)
msg225624 - (view) Author: Akira Li (akira) * Date: 2014年08月21日 23:48
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.
msg238840 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2015年03月21日 22:44
It's a comprehensive patch so can we have a formal review please.
msg270534 - (view) Author: Alexander Belopolsky (belopolsky) * (Python committer) Date: 2016年07月16日 02:24
With PEP 495, conversion from timestamp to naive datetime will no longer loose information. In light of this, I would like to reconsider what strftime('%s') should return in the absence of %z.
History
Date User Action Args
2022年04月11日 14:58:07adminsetgithub: 66442
2020年03月18日 18:00:00brett.cannonsetnosy: - brett.cannon
2019年04月21日 06:42:33xtreaksetnosy: + p-ganssle
2016年07月16日 21:25:36rhettingersetnosy: + brett.cannon
2016年07月16日 19:11:26BreamoreBoysetnosy: - BreamoreBoy
2016年07月16日 02:24:04belopolskysetmessages: + msg270534
2016年07月16日 02:19:02belopolskysetassignee: belopolsky
versions: + Python 3.6, - Python 3.5
2015年03月21日 22:44:32BreamoreBoysetnosy: + BreamoreBoy
messages: + msg238840
2014年08月22日 17:30:23berker.peksagsetnosy: + belopolsky

stage: patch review
2014年08月22日 00:02:06akirasetfiles: + draft-strptime-%s.diff
2014年08月22日 00:01:59akirasetfiles: - draft-strptime-%s.diff
2014年08月21日 23:48:56akiracreate

AltStyle によって変換されたページ (->オリジナル) /