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 jdtogregorian()


previous

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

Paramters

ParameterDescription
juliandayRequired. 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(10, 11, 1970);
echo "$jd<br />";
$gregorian = jdtogregorian($jd);
echo "$gregorian<br />";
?> 

This will produce following result:

2440871
10/11/1970

previous Printer Friendly

Advertisements


  

Advertisements