w3resource
PHP Tutorial

PHP: jdtounix() function

Description

The jdtounix() function is used to convert a Julian day count to a UNIX timestamp.

Version:

(PHP 4 and above)

Syntax:

jdtounix(julian_day_count)

Parameter:

Name Description Required /
Optional
Type
julian_day_count A Julian day number between 2440588 and 2465342. Required Date

Return value:

The unix timestamp.

Value Type: Integer.

Example:

<?php
$julian_day_count = jdtounix(2441201);
echo($julian_day_count);
?>

Sample Output:

52963200 

View the example in the browser

See also

PHP Function Reference



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