Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #102747
| From | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: [SOLVED] There has to be a better way to split this string! |
| Date | 2016-02-10 12:47 +1100 |
| Message-ID | <mailman.11.1455068845.7749.python-list@python.org> (permalink) |
| References | <56BA91B5.5090400@cajuntechie.org> <56BA9505.40900@cajuntechie.org> |
Anthony Papillion <anthony@cajuntechie.org> writes: > On 02/09/2016 07:26 PM, Anthony Papillion wrote: > > I am using datetime.now() to create a unique version of a filename. > > […] > > Found the solution in strftime(). Exactly what I was looking for. For the task of making a unique filename, you should also consider the ‘tempfile’ module in the standard library. -- \ “I distrust those people who know so well what God wants them | `\ to do to their fellows, because it always coincides with their | _o__) own desires.” —Susan Brownell Anthony, 1896 | Ben Finney
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: [SOLVED] There has to be a better way to split this string! Ben Finney <ben+python@benfinney.id.au> - 2016-02-10 12:47 +1100
csiph-web