I know this is an old post, but I also wanted to include hours/minutes/seconds in my templates.
As Tilman suggested, it's quite easy to modify the function format_photo_name, once you realize that photo.date is actually a datetime object (that can be seen from the function getappletime in applexml.py).
So it's just a matter of adding the time info lines under "if photo.date":
if photo.date:
year = str(photo.date.year)
month = str(photo.date.month).zfill(2)
day = str(photo.date.day).zfill(2)
hour = str(photo.date.hour).zfill(2)
minute = str(photo.date.minute).zfill(2)
second = str(photo.date.second).zfill(2)
else:
year = ''
month = ''
day = ''
hour = ''
minute = ''
second = ''
and again in the name_template.format() call:
...
mm=month,
dd=day,
hh=hour,
MM=minute,
ss=second)
Save the file, launch phoshare, and that's it, you can now use {hh}/{MM}/{ss} in the file name templates.
Jonathan