示例#1
0
<body>

<div class="Paragraph">
<h2 dir="ltr">Example Output:</h2>

<?php
    error_reporting(E_STRICT);
    $time_start = microtime(true);
    
    date_default_timezone_set('UTC');
    
    include('../Arabic.php');
    $Ar = new Arabic('ArMktime');

    $correction = $Ar->mktimeCorrection(9, 1429);
    $time = $Ar->mktime(0, 0, 0, 9, 1, 1429, $correction);
    
    echo "Calculated first day of Ramadan 1429 unix timestamp is: $time<br>";
    
    $Gregorian = date('l F j, Y',$time);
    
    echo "Which is $Gregorian in Gregorian calendar";
?>
</div><br />
<div class="Paragraph">
<h2>Example Code:</h2>
<?php
    highlight_string(<<<'END'
<?php
    date_default_timezone_set('UTC');