in reply to Getting "A.M." and "P.M." with localtime $time
If you're getting the wrong time out, that's because your time-zone is set incorrectly. Check the output of your 'date' command, or if you're using something that uses these things they call "Control Panels", check there.use POSIX 'strftime'; my $time = strftime("%r", localtime()); print $time,"\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: localtime $time
by mt2k (Hermit) on Jul 17, 2002 at 05:28 UTC | |
by Anonymous Monk on Jul 17, 2002 at 16:34 UTC |