-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
28 lines (26 loc) · 1 KB
/
index.php
File metadata and controls
28 lines (26 loc) · 1 KB
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
</head>
<body>
<?php
require_once './gCal.php';
require_once './calendar/Gregorian.php';
require_once './calendar/SolarHijri.php';
$solarHijri = '1392/05/28 11:01:02';
echo '<u>Convert Solar Hijri to Gregorian :</u><br>' .
'Sample Solar Hijri : ' . $solarHijri . '<br>' .
'Converted to Gregorian : ' .
gCal::convert('Y/m/d H:i:s', $solarHijri, SolarHijri::calendarName(), 'Y-m-d H:i:s', Gregorian::calendarName()) .
'<br><br>';
$gregorian = '2013-08-19 01:00:01';
echo '<u>Convert Gregorian to Solar Hijri :</u><br>' .
'Sample Gregorian : ' . $gregorian . '<br>' .
'Converted to Solar Hijri : ' .
gCal::convert('Y-m-d H:i:s', $gregorian, Gregorian::calendarName(), 'Y/m/d H:i:s', SolarHijri::calendarName()) .
'<br><br>';
?>
</body>
</html>