Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #102756

Re: There has to be a better way to split this string!

From Cameron Simpson <cs@zip.com.au>
Newsgroups comp.lang.python
Subject Re: There has to be a better way to split this string!
Date 2016-02-10 17:50 +1100
Message-ID <mailman.0.1455087479.22075.python-list@python.org> (permalink)
References <CACs7g=C3x_LphyBah4UPm6O8w=o+DQE9mvYwb9aATzGsJrV=Xw@mail.gmail.com>

Show all headers | View raw


On 10Feb2016 07:34, srinivas devaki <mr.eightnoteight@gmail.com> wrote:
>On Feb 10, 2016 7:23 AM, "srinivas devaki" <mr.eightnoteight@gmail.com>
>wrote:
>> On Feb 10, 2016 6:56 AM, "Anthony Papillion" <anthony@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 <cs@zip.com.au>

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: There has to be a better way to split this string! Cameron Simpson <cs@zip.com.au> - 2016-02-10 17:50 +1100

csiph-web