Speed up development with full-stack environments for every branch.

Learn More

How to convert unix timestamp to Julian Day [php-calendar]

67 Runs 207 Views 25 Copies
Saved

Saved

gtsolutions 373

gtsolutions
published 4 years ago

<?php

/**
 * PHP Calendar module
 * Convert Unix timestamp to Julian Day.
 */

echo '<center>';
foreach (range(2008, 2015) as $year) {
    echo '<br /><div style="background-color:green;padding:10px;color:#fff;font-size:16px;width:400px;">';
    echo '01-01-'.$year.' is day number <b>'.unixtojd(strtotime('01-01-'.$year)).'</b> in Julian Calendar';
    echo '</div>';
}
echo '</center>';
?>
Please login/signup to get access to the terminal.

Your session has timed out.

Dismiss (the page may not function properly).