Gossamer Forum
Home : General : Perl Programming :

Time & Date on Unix

Quote Reply
Time & Date on Unix
What's the simpliest way to get time and date on the Unix system using Perl?


Thank you in avdance.

Pasha

------------------
webmaster@find.virtualave.net
http://find.virtualave.net
Quote Reply
Re: Time & Date on Unix In reply to
How bout:

$time = localtime();

If you don't like how it's formatted, then you can do:

@time = localtime();

and format it yourself.

Cheers,

Alex