w3resource

PHP: unixtojd() function

Convert Unix timestamp to Julian Day

The unixtojd() function converts a UNIX timestamp to a Julian day count.

Version:

(PHP 4 and above)

Syntax:

unixtojd(timestamp)

Parameter:

Name Description Required /
Optional
Type
timestamp A unix timestamp to convert. Optional Integer.

Return value:

A Julian day.

Value Type: Integer.

Example:

<?php
echo(unixtojd());
?>

Sample Output:

2455392

View the example in the browser

See also

PHP Function Reference

Previous: JulianToJD
Next: Date Functions checkdate



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://www.w3resource.com/php/function-reference/unixtojd.php