-
Texis User
- Posts: 74
- Joined: Thu Jul 13, 2006 8:47 am
Post
by Texis User »
Hi,
I have a batch process creating files.
I need timestamp appended to their file names.
Can we do that?
Thanks
-
jason112
- Site Admin
- Posts: 347
- Joined: Tue Oct 26, 2004 5:35 pm
Post
by jason112 »
Yes, by formatting 'now' as a string when making the filenames.
<strfmt "logfile-%at.log" "%m/%d/%y-%H:%M" 'now'>
See
http://www.thunderstone.com/site/vortexman/node92.html for details on customizing the date format.
-
jason112
- Site Admin
- Posts: 347
- Joined: Tue Oct 26, 2004 5:35 pm
Post
by jason112 »
typo, make that "formatting 'now' as a date", if it wasn't clear.