PHP - Function jdtogregorian()


Advertisements


Syntax

jdtogregorian ( $julianday );

Definition and Usage

This converts Julian Day Count to a string containing the Gregorian date in the format of "month/day/year".

Parameters

Sr.No Parameter & Description
1

julianday(Required)

A julian day number as integer

Return Value

The gregorian date as a string in the form "month/day/year"

Example

Try out following example −

<?php
     $jd = gregoriantojd(1, 12, 1990);
   echo "$jd";
   print "\n";
   
   $gregorian = jdtogregorian($jd);
   echo "$gregorian";
   print "\n" ;
?> 

This will produce the following result −

2447904
 1/12/1990

php_function_reference.htm

Advertisements