How do I grab the time from the machine? Is there a system command?
time() gives you the time stamp
getdate(time()) gives you an associative array for the current date. and you can stick an old timestamp into getdate($sometime) to return the month and day and stuff.