#!/usr/bin/php <?php $input = implode(' ', array_slice($argv, 1)); $timestamp = strtotime($input); echo "Raw: $input\n"; echo "Interpreted: " . date('r', $timestamp) . " ($timestamp)\n";
./test_strtotime Mar 5 ./test_strtotime "Mar 5" 2009