w3resource

PHP: unixtojd() function

Description

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



Follow us on Facebook and Twitter for latest update.