Straight from the
Perldoc pages:
PHP Code:
$now_string = localtime; # e.g., "Thu Oct 13 04:54:34 1994"
You should also know that you are using an archaic method of parsing information from the query string. You should really look into using
CGI.pm. It does all the work for you basically. Plus, you guaranteed that it's actually going to work with out bugs. There's no need to strip unwanted characters because it does it for you. Plus, it also lets you work with cookies, display HTML headers, print out forms, and much much more. Once you've moved to CGI.pm you'll wonder why you ever coded without it. Seriously...