w3resource
PHP Tutorial

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



New Content: Composer: Dependency manager for PHP, R Programming


bedava porno