/hphp/test/zend/good/ext/date/tests/strtotime.php
PHP | 12 lines | 11 code | 1 blank | 0 comment | 0 complexity | 1b59c8653b6712d1838eef7c3a8c16c3 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
- <?hh <<__EntryPoint>> function main(): void {
- date_default_timezone_set('Europe/Oslo');
- $d = varray[];
- $d[] = strtotime("2005-07-14 22:30:41");
- $d[] = strtotime("2005-07-14 22:30:41 GMT");
- $d[] = strtotime("@1121373041");
- $d[] = strtotime("@1121373041 CEST");
- foreach($d as $date) {
- echo date(DATE_ISO8601, $date), "\n";
- }
- }