<?php
echo ("Expires: ".gmdate("D, d M Y H:i:s", time() + 3600)." GMT");
echo "\n";
$d1=new DateTime("2012-07-08 11:14:15.638276");
print_r( $d1 );
- Output for 5.4.30 - 5.4.45, 5.5.14 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.5, 7.1.7 - 7.1.20, 7.2.0 - 7.2.6
- Expires: Thu, 22 Oct 2015 12:04:37 GMT
DateTime Object
(
[date] => 2012-07-08 11:14:15.638276
[timezone_type] => 3
[timezone] => Europe/Amsterdam
)
- Output for 7.1.6
- Expires: Thu, 22 Oct 2015 12:04:38 GMT
DateTime Object
(
[date] => 2012-07-08 11:14:15.638276
[timezone_type] => 3
[timezone] => Europe/Amsterdam
)
- Output for 5.4.0 - 5.4.29, 5.5.0 - 5.5.13
- Expires: Thu, 22 Oct 2015 12:04:37 GMT
DateTime Object
(
[date] => 2012-07-08 11:14:15
[timezone_type] => 3
[timezone] => Europe/Amsterdam
)
preferences:
112.04 ms | 402 KiB | 133 Q