File: library.phtml

package info (click to toggle)
php3 1%3A3.0.5-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 8,348 kB
  • ctags: 9,086
  • sloc: ansic: 76,362; sh: 2,333; php: 1,329; yacc: 1,148; makefile: 970; perl: 763; cpp: 529; awk: 90; sql: 11
file content (41 lines) | stat: -rw-r--r-- 1,231 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
PHP3 Library Test

<?
dl("calendar.dll");

$date = Date("m/d/Y",Time());
echo("Today is: $date\n\n");
$month = Date("m",Time());
$day = Date("d",Time());
$year = Date("Y",Time());

$jul  = GregorianToJD($month,$day,$year);
echo("\nJulian Day Count: $jul\n");
$date = JDToGregorian($jul);
echo("\nGregorian Calendar: $date\n"); 
$monthname = JDMonthName($jul,0);
echo("\nGregorian Month: $monthname\n");
$monthname = JDMonthName($jul,1);
echo("\nGregorian Month: $monthname\n");
$date = JDToJulian($jul);
echo("\nJulian Calendar: $date\n"); 
$monthname = JDMonthName($jul,2);
echo("\nJulian Month: $monthname\n");
$monthname = JDMonthName($jul,3);
echo("\nJulian Month: $monthname\n");
$date = JDToJewish($jul);
echo("\nJewish Calendar: $date\n"); 
$monthname = JDMonthName($jul,4);
echo("\nJewish Month: $monthname\n");
$date = JDToFrench($jul);
echo("\nFrench Calendar: $date\n"); 
$monthname = JDMonthName($jul,5);
echo("\nFrench Month: $monthname\n");
$dayofweek = JDDayOfWeek($jul,0);
echo("\nDay of Week: $dayofweek (0=Sun 6=Sat)\n");
$dayofweeklong = JDDayOfWeek($jul,1);
echo("\nDay of Week: $dayofweeklong\n");
$dayofweekshort = JDDayOfWeek($jul,2);
echo("\nDay of Week: $dayofweekshort\n");
echo("Julian Day: $jul\n");
?>