File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
calendar /
tests /
cal_from_jd.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:47:53 2012 UTC (13 years, 1 month ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
--TEST--
cal_from_jd()
--SKIPIF--
<?php include 'skipif.inc'; ?>
--FILE--
<?php
print_r(cal_from_jd(1748326, CAL_GREGORIAN));
print_r(cal_from_jd(1748324, CAL_JULIAN));
print_r(cal_from_jd( 374867, CAL_JEWISH));
print_r(cal_from_jd( 0, CAL_FRENCH));
?>
--EXPECT--
Array
(
[date] => 8/26/74
[month] => 8
[day] => 26
[year] => 74
[dow] => 0
[abbrevdayname] => Sun
[dayname] => Sunday
[abbrevmonth] => Aug
[monthname] => August
)
Array
(
[date] => 8/26/74
[month] => 8
[day] => 26
[year] => 74
[dow] => 5
[abbrevdayname] => Fri
[dayname] => Friday
[abbrevmonth] => Aug
[monthname] => August
)
Array
(
[date] => 8/26/74
[month] => 8
[day] => 26
[year] => 74
[dow] => 4
[abbrevdayname] => Thu
[dayname] => Thursday
[abbrevmonth] => Nisan
[monthname] => Nisan
)
Array
(
[date] => 0/0/0
[month] => 0
[day] => 0
[year] => 0
[dow] => 1
[abbrevdayname] => Mon
[dayname] => Monday
[abbrevmonth] =>
[monthname] =>
)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>