PHP jdtounix() Function

Definition

The jdtounix() function converts Julian Day Count to Unix timestamp.

Syntax

PHP jdtounix() Function has the following syntax.

jdtounix(jd);

Parameter

  • jd - Required. A Julian Day number between 2440588 and 2465342

Return

PHP jdtounix() Function returns the Unix timestamp for the start of the specified Julian day.

Example

Convert a Gregorian date to a Julian Day Count; then convert the Julian Day Count to Unix timestamp:


<?php
$jd=gregoriantojd(10,3,2013);
echo jdtounix($jd);
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Function reference »




PHP Array Functions
PHP Calendar Functions
PHP Class Functions
PHP Data Type Functions
PHP Date Functions
PHP File Functions
PHP Image Functions
PHP Math Functions
PHP MySQLi Functions
PHP SimpleXML Functions
PHP String Functions
PHP XML Functions
PHP Zip Functions