|
|
@ -16,6 +16,18 @@ $day = date("d") - 12;
|
|
|
|
// test sample date
|
|
|
|
// test sample date
|
|
|
|
echo "Year: " . $year . " Month: " . $month . " Day: " . $day . "<br/>";
|
|
|
|
echo "Year: " . $year . " Month: " . $month . " Day: " . $day . "<br/>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Test 3 with idea based on ahk version of RMT, not sure if actually works in PHP
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$testdate=date_create();
|
|
|
|
|
|
|
|
date_add($testdate,date_interval_create_from_date_string("-579 years"));
|
|
|
|
|
|
|
|
date_add($testdate,date_interval_create_from_date_string("-6 months"));
|
|
|
|
|
|
|
|
date_add($testdate,date_interval_create_from_date_string("12 days"));
|
|
|
|
|
|
|
|
date_add($testdate,date_interval_create_from_date_string("2 hours"));
|
|
|
|
|
|
|
|
date_add($testdate,date_interval_create_from_date_string("17 minutes"));
|
|
|
|
|
|
|
|
date_add($testdate,date_interval_create_from_date_string("6 seconds"));
|
|
|
|
|
|
|
|
echo date_format($testdate,"Y/m/d H:i:s");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
?>
|
|
|
|
Placeholder.
|
|
|
|
Placeholder.
|
|
|
|
|
|
|
|
|
|
|
|