Unix and Linux Discussions Tagged with day |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
28 |
22,247 |
What is on Your Mind? |
|
|
|
11 |
2,862 |
Shell Programming and Scripting |
|
|
|
2 |
2,454 |
Shell Programming and Scripting |
|
|
|
6 |
2,050 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
1,547 |
Shell Programming and Scripting |
|
|
|
6 |
8,765 |
Shell Programming and Scripting |
|
|
|
7 |
4,276 |
Linux |
|
|
|
2 |
4,593 |
Shell Programming and Scripting |
|
|
|
36 |
129,032 |
IP Networking |
|
|
|
0 |
2,289 |
IT Security RSS |
|
|
|
0 |
1,903 |
Cartoons for Geeks |
|
|
|
10 |
9,349 |
Programming |
|
|
|
1 |
3,546 |
What is on Your Mind? |
|
|
|
0 |
3,560 |
Cartoons for Geeks |
|
|
|
2 |
12,553 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
12,286 |
Shell Programming and Scripting |
|
|
|
0 |
1,702 |
Cartoons for Geeks |
|
|
|
0 |
2,173 |
Cartoons for Geeks |
|
|
|
0 |
2,022 |
Cartoons for Geeks |
|
|
|
0 |
2,802 |
Cartoons for Geeks |
|
|
|
0 |
1,190 |
UNIX and Linux RSS News |
|
|
|
1 |
4,400 |
Shell Programming and Scripting |
|
|
|
0 |
890 |
Software Releases - RSS News |
|
|
|
1 |
7,264 |
Shell Programming and Scripting |
|
|
|
0 |
2,889 |
Cartoons for Geeks |
|
|
|
0 |
3,207 |
Cartoons for Geeks |
|
|
|
0 |
1,418 |
UNIX and Linux RSS News |
|
|
|
0 |
1,945 |
Cartoons for Geeks |
|
|
|
6 |
6,263 |
Shell Programming and Scripting |
|
|
|
0 |
1,396 |
UNIX and Linux RSS News |
|
|
|
0 |
1,057 |
Software Releases - RSS News |
|
|
|
6 |
22,130 |
Shell Programming and Scripting |
|
|
|
2 |
6,849 |
Shell Programming and Scripting |
|
|
|
0 |
1,136 |
Software Releases - RSS News |
|
|
|
0 |
1,825 |
UNIX and Linux RSS News |
|
|
|
0 |
1,100 |
UNIX and Linux RSS News |
|
|
|
0 |
2,429 |
UNIX and Linux RSS News |
|
|
|
0 |
1,259 |
UNIX and Linux RSS News |
|
|
|
0 |
1,277 |
UNIX and Linux RSS News |
|
|
|
0 |
1,063 |
Software Releases - RSS News |
CAL_FROM_JD(3) 1 CAL_FROM_JD(3)
cal_from_jd - Converts from Julian Day Count to a supported calendar
SYNOPSIS
array cal_from_jd (int $jd, int $calendar)
DESCRIPTION
cal_from_jd(3) converts the Julian day given in $jd into a date of the specified $calendar. Supported $calendar values are CAL_GREGORIAN,
CAL_JULIAN, CAL_JEWISH and CAL_FRENCH.
PARAMETERS
o $jd
- Julian day as integer
o $calendar
- Calendar to convert to
RETURN VALUES
Returns an array containing calendar information like month, day, year, day of week, abbreviated and full names of weekday and month and
the date in string form "month/day/year".
EXAMPLES
Example #1
cal_from_jd(3) example
<?php
$today = unixtojd(mktime(0, 0, 0, 8, 16, 2003));
print_r(cal_from_jd($today, CAL_GREGORIAN));
?>
The above example will output:
Array
(
[date] => 8/16/2003
[month] => 8
[day] => 16
[year] => 2003
[dow] => 6
[abbrevdayname] => Sat
[dayname] => Saturday
[abbrevmonth] => Aug
[monthname] => August
)
SEE ALSO
cal_to_jd(3), jdtofrench(3), jdtogregorian(3), jdtojewish(3), jdtojulian(3), jdtounix(3).
PHP Documentation Group CAL_FROM_JD(3)