Annotation of embedaddon/php/ext/date/tests/date-set-timestamp.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: DateTime::setTimestamp()
3: --FILE--
4: <?php
5: date_default_timezone_set('Europe/Oslo');
6: $d = new DateTime( '@1217184864' );
7: echo $d->format( "Y-m-d H:i e\n" );
8:
9: $d = new DateTime();
10: $d->setTimestamp( 1217184864 );
11: echo $d->format( "Y-m-d H:i e\n" );
12: ?>
13: --EXPECT--
14: 2008-07-27 18:54 +00:00
15: 2008-07-27 20:54 Europe/Oslo
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>