xref: /PHP-5.4/ext/date/tests/strtotime.phpt (revision afd01152)
1--TEST--
2strtotime() function
3--FILE--
4<?php
5date_default_timezone_set('Europe/Oslo');
6$d = array();
7$d[] = strtotime("2005-07-14 22:30:41");
8$d[] = strtotime("2005-07-14 22:30:41 GMT");
9$d[] = strtotime("@1121373041");
10$d[] = strtotime("@1121373041 CEST");
11
12foreach($d as $date) {
13	echo date(DATE_ISO8601, $date), "\n";
14}
15?>
16--EXPECT--
172005-07-14T22:30:41+0200
182005-07-15T00:30:41+0200
192005-07-14T22:30:41+0200
202005-07-14T22:30:41+0200
21