[SOLVED] There has to be a better way to split this string!
Ben Finney
ben+python at benfinney.id.au
Tue Feb 9 20:47:16 EST 2016
Anthony Papillion <anthony at 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
More information about the Python-list
mailing list