Tutorials Point


  Learning PHP
  Advanced PHP
  PHP Function Reference
  PHP Useful Resources
  Selected Reading

Copyright © 2014 by tutorialspoint



  Home     References     Discussion Forums     About TP  

PHP Function jdtojulian()


previous

Advertisements

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".

Paramters

ParameterDescription
juliandaycountRequired. 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 . "<br />");

$julian = jdtojulian($jd);
echo($julian);
?> 

This will produce following result:

2447085
10/3/1987

previous Printer Friendly

Advertisements


  

Advertisements