in reply to Extract System Time & Date in a perl so that it can be used in a perl program
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Extract System Time & Date in a perl so that it can be used in a perl program
by Random_Walk (Prior) on Jan 31, 2006 at 17:19 UTC |