[Tutor] Hi all: How do I save a file in a designated folder?

Alan Gauld alan.gauld at yahoo.co.uk
Wed May 3 02:30:10 EDT 2017


On 03/05/17 00:28, Cameron Simpson wrote:

>> And so forth? I assume you mean
>>
>> MMDDYYYY.png format?
>>
>> You should read about the strftime function in the time
> 
> Further to this, I would also advocate that you consider writing the timestamp 
> from largest unit to smallest unit, like an ISO8601 timestamp, which typically 
> looks like:
> 
>   YYYYMMDD.png

Yes, I absolutely second this advice and should have included it.
ISO dates make programming life so much easier!


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list