I’m new to programming, looking to learn Python. Is this kind of task a good one for Python? I’d like to learn Python anyhow.
I have a directory of images…
20080105_123932.jpg
20080111_203500.jpg
20080113_114714.jpg
And I’d like to parse them into structured HTML:
<img src="../images/2008/20080105_123932.jpg" /><br />
Saturday 1/5 12:39pm<br /><br /><br />
<img src="../images/2008/20080111_203500.jpg" /><br />
Friday 1/11 8:35pm<br /><br /><br />
<img src="../images/2008/20080113_114714.jpg" /><br />
Sunday 1/13 11:47am<br /><br /><br />
I’m wondering if Python is the right choice… does it have a function that parses proper day names & times from a naming structure like yyyymmdd_hhmmss ? Or should I write my own?
Thanks for any pointers.