John Dunn wrote: > I need to return the current date and time in the following format > > YYYYMMDDHHMMSS > > but am struggling to do this using the localtime function
Use the POSIX strftime() function:
use POSIX 'strftime';
print strftime("%Y%m%d%H%M%S", localtime);
This works on both UNIX and Windows.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
