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


Groups > comp.lang.python > #102747 > unrolled thread

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

Started byBen Finney <ben+python@benfinney.id.au>
First post2016-02-10 12:47 +1100
Last post2016-02-10 12:47 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  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

#102747 — Re: [SOLVED] There has to be a better way to split this string!

FromBen Finney <ben+python@benfinney.id.au>
Date2016-02-10 12:47 +1100
SubjectRe: [SOLVED] There has to be a better way to split this string!
Message-ID<mailman.11.1455068845.7749.python-list@python.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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web