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
I was using a binary with the new timelib. Undo the datetime tests
[hiphop-php.git]
/
hphp
/
test
/
zend
/
bad
/
ext-date
/
strtotime-mysql.php
blob
79b1cc59294e515ba4cf517b0c7ca60b9b8e7fb6
1
<
?php
2
date_default_timezone_set
(
'UTC'
);
3
4
/* Format: YYYYMMDDHHMMSS */
5
$d
[] =
'19970523091528'
;
6
$d
[] =
'20001231185859'
;
7
$d
[] =
'20800410101010'
;
// overflow..
8
9
foreach
(
$d
as
$date
) {
10
$time
=
strtotime
(
$date
);
11
12
if
(
is_integer
(
$time
)) {
13
var_dump
(
date
(
'r'
,
$time
));
14
}
else
{
15
var_dump
(
$time
);
16
}
17
}
18
?
>