How to use UnixToJD in PHP Calendar

In this article I am going to explain about UnixToJD function in PHP.
  • 1897

PHP Calendar UnixToJD() Function

The calendar UnixToJD function converts a Unix timestamp to a Julian day count.

Syntax of  UnixToJD function

unixtojd(timestamp)

Parameters in UnixToJD  function

It has only one parameter:

Parameter Description
timestamp It is an optional parameter and accepts timestamp.

Example of Calendar UnixToJD function

<html>

<body>

 

<?php

echo(unixtojd(1345507200));

?>

 

</body>

</html>

 

Output:

UnixToJD function.jpg

You may also want to read these related articles :
here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2019 DotNetHeaven. All rights reserved.