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.
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:07 | admin | set | github: 66442 |
| 2020年03月18日 18:00:00 | brett.cannon | set | nosy:
- brett.cannon |
| 2019年04月21日 06:42:33 | xtreak | set | nosy:
+ p-ganssle |
| 2016年07月16日 21:25:36 | rhettinger | set | nosy:
+ brett.cannon |
| 2016年07月16日 19:11:26 | BreamoreBoy | set | nosy:
- BreamoreBoy |
| 2016年07月16日 02:24:04 | belopolsky | set | messages: + msg270534 |
| 2016年07月16日 02:19:02 | belopolsky | set | assignee: belopolsky versions: + Python 3.6, - Python 3.5 |
| 2015年03月21日 22:44:32 | BreamoreBoy | set | nosy:
+ BreamoreBoy messages: + msg238840 |
| 2014年08月22日 17:30:23 | berker.peksag | set | nosy:
+ belopolsky stage: patch review |
| 2014年08月22日 00:02:06 | akira | set | files: + draft-strptime-%s.diff |
| 2014年08月22日 00:01:59 | akira | set | files: - draft-strptime-%s.diff |
| 2014年08月21日 23:48:56 | akira | create | |