repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
make test runner work in open source repo
[hiphop-php.git]
/
hphp
/
test
/
zend
/
bad
/
ext-date
/
date-set-timestamp.php
blob
d9a9adab361b6ff2c00c41328ffe137e01fe78bf
1
<
?php
2
date_default_timezone_set
(
'Europe/Oslo'
);
3
$d
=
new
DateTime
(
'
@1217184864
'
);
4
echo
$d
->
format
(
"Y-m-d H:i e
\n
"
);
5
6
$d
=
new
DateTime
();
7
$d
->
setTimestamp
(
1217184864
);
8
echo
$d
->
format
(
"Y-m-d H:i e
\n
"
);
9
?
>