summaryrefslogtreecommitdiff
path: root/ext/calendar/tests/juliantojd.phpt
blob: 19a6b270483d39cafadb73d85bcd667b3fb6d174 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
juliantojd()
--EXTENSIONS--
calendar
--FILE--
<?php
echo juliantojd( 0, 0,    0). "\n";
echo juliantojd( 1, 1, 1582). "\n";
echo juliantojd(10, 5, 1582). "\n";
echo juliantojd( 1, 1, 1970). "\n";
echo juliantojd( 1, 1, 2999). "\n";
echo juliantojd( 1, 1, -4713). "\n";
?>
--EXPECT--
0
2298884
2299161
2440601
2816443
0