Akira Li added the comment: issue22246 discusses the reverse: strptime('12345', '%s') ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue12750> _______________________________________