PHP jdtojulian() Function

Definition

The jdtojulian() function converts a Julian Day Count to a Julian date.

Syntax

PHP jdtojulian() Function has the following syntax.

jdtojulian(jd);

Parameter

  • jd - Required. A Julian Day number

Return

PHP jdtojulian() Function returns a Julian date in format "month/day/year".

Example

Convert a Julian date to a Julian Day Count and back to a Julian date:


<?php/*from   www  . ja v  a 2s .  com*/
$jd=juliantojd(6,20,2013);
echo $jd . "\n";
echo jdtojulian($jd);
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Function reference »




PHP Array Functions
PHP Calendar Functions
PHP Class Functions
PHP Data Type Functions
PHP Date Functions
PHP File Functions
PHP Image Functions
PHP Math Functions
PHP MySQLi Functions
PHP SimpleXML Functions
PHP String Functions
PHP XML Functions
PHP Zip Functions