#!/usr/bin/php -q // SystemTime.php // 2007-09-19 // Chieh Cheng // http://www.CynosureX.com/ // GNU General Public License (GPL) Version 2, June 1991 // Provide system time in seconds since the UNIX Epoch // (January 1 1970 00:00:00 GMT). function usage ($scriptPath) { $scriptName = basename ($scriptPath); echo " Usage: \"" . $scriptName . "\"\n"; } $args = count ($argv); if ($args == 1) { $time = time (); echo $time . "\n"; } else { usage ($argv [0]); } ?>