deko wrote:
It seems getting "Oct 05 2004 01:42 pm" into "13, 42, 0, 10, 5, 2004" is the
challenge.
$ cat time.php
<?php
$in = "Oct 05 2004 01:42 pm";
$out = strtotime($in);
if ($out == NULL) echo "unable to convert\n";
else {
echo "\"$in\" converts to ",
date('G, i', $out), ", ",
1*date('s', $out), ", ",
date('n, j, Y', $out), "\n";
}
?>
$ php time.php
"Oct 05 2004 01:42 pm" converts to 13, 42, 0, 10, 5, 2004
--
================== My mail address is spam-trapped ==================
To: "My Name" <myaddress> | messages without these three
Content-Type: text/plain | conditions _will_ be sent to
size < 10K | /dev/null