Tuesday, November 17, 2009

ActiveState Perl on Windows - get Date and Time into variables

Places date and time into variables to be used later.

$dt = system("date /T 2>NUL");
chop $dt;
$tm = system("time /T 2>NUL");
chop $tm;

No comments:

Post a Comment