On 10Feb2016 07:34, srinivas devaki <mr.eightnotei...@gmail.com> wrote:
On Feb 10, 2016 7:23 AM, "srinivas devaki" <mr.eightnotei...@gmail.com>
wrote:
On Feb 10, 2016 6:56 AM, "Anthony Papillion" <anth...@cajuntechie.org>
wrote:
> I am using datetime.now() to create a unique version of a filename.
> When the final file is named, it will look something like:
> myfile-2015-02-09-19-08-45-4223

You can easily do this(retrieving the tokens) using re module.
[... complicated suggestion for the inverse problem ...]

I'm a stupid.
as soon as I saw strftime it looked like strptime and I assumed he is
trying to extract the tokens and wrote that stupid/unrelated mail.

PS: trying to read mailing list when you are half woke, is a bad idea and
trying reply to it is even bad idea.

Regrettably, when one is half awake one is unable to realise what a bad idea it may be:-)

Cheers,
Cameron Simpson <c...@zip.com.au>
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to