This "down-to-earth" squirrel is building a nest containing nuggets of Perl Techniques, tips, and tricks for useful application development, data conversion scripts and one-liners. UNIX/Linux shell scripting topics will also be added.
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