Revision: 4777
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 20, 2008 22:08 by coggla
Initial Code
// Set timezone putenv('TZ=Australia/Adelaide'); // Date formatting date("m.d.y"); // 03.10.01 date("F j, Y, g:i a"); // March 10, 2001, 5:16 pm date("D M j G:i:s T Y"); // Sat Mar 10 17:16:08 MST 2001 date("l F j, Y"); // Saturday March 10, 2001 date("H:i:s"); // 17:16:17 date(DATE_RFC822); //RFC822 format date for RSS // Change date from MySQL format list($year,$month,$date) = explode('-',$mysql_date); $new_date = date("D M j Y", mktime(0,0,0,$month,$date,$year)); // Get UNIX timestamp from date and time (hr-min-sec-month-day-year) $stamp = mktime(0, 0, 0, 3, 0, 2000);
Initial URL
Initial Description
Initial Title
Date & Time Basics
Initial Tags
Initial Language
PHP