• PHP Video Tutorials

PHP - Function jdtojulian()



Syntax

jdtojulian ( $juliandaycount );

Definition and Usage

This function converts Julian Day Count to a string containing the Julian Calendar Date in the format of "month/day/year".

Parameters

Sr.No Parameter & Description
1

juliandaycount(Required)

A julian day number as integer

Return Value

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

Example

Try out following example −

<?php
   $jd = juliantojd(10,3,1987);
   echo($jd . "\n");
   
   $julian = jdtojulian($jd);
   echo($julian);
?> 

This will produce the following result −

2447085
10/3/1987
php_function_reference.htm
Advertisements