On 10Feb2016 07:34, srinivas devaki <[email protected]> wrote:
On Feb 10, 2016 7:23 AM, "srinivas devaki" <[email protected]>
wrote:
On Feb 10, 2016 6:56 AM, "Anthony Papillion" <[email protected]>
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 <[email protected]>
--
https://mail.python.org/mailman/listinfo/python-list