Annotation of embedaddon/php/ext/date/tests/strtotime.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: strtotime() function
3: --FILE--
4: <?php
5: date_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:
12: foreach($d as $date) {
13: echo date(DATE_ISO8601, $date), "\n";
14: }
15: ?>
16: --EXPECT--
17: 2005-07-14T22:30:41+0200
18: 2005-07-15T00:30:41+0200
19: 2005-07-14T22:30:41+0200
20: 2005-07-14T22:30:41+0200
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>