
miller
User
Jun 24, 2011, 12:46 AM
Post #2 of 5
(1071 views)
|
|
Re: [zatlas1] Backtik `date` in Windows
[In reply to]
|
Can't Post
|
|
You can do better, just use a pure perl version:
use POSIX qw(strftime); use strict; use warnings; 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. - Miller
|