The time function returns the number of seconds since the epoch (usually 1st Jan 1970). The localtime function converts that number into more meaningful units. The strftime function (from the standard module POSIX.pm) is useful for formatting dates and times.
That should get you started, beyond that, take a look at the modules produced by the Perl Date/Time project.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: Extract System Time & Date in a perl so that it can be used in a perl program
by davorg
in thread Extract System Time & Date in a perl so that it can be used in a perl program
by comet85
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |