Jun 24, 2011, 12:46 AM
Post #2 of 5
You can do better, just use a pure perl version:
Re: [zatlas1] Backtik `date` in Windows
[In reply to]
use POSIX qw(strftime);
print strftime "%a %b %d %H:%M:%S %Z %Y", localtime;
Your main problem is going to be the timezone %Z, as that is not normally static cross platform. At worse, you might just want to hardcode that as PDT or whatever your appropriate timezone is.