PhpDig.net

What is PhpDig?
PhpDig is a PHP MySQL based
Web Spider & Search Engine.




jdtounix

Name

jdtounix — Converts a Julian day count to a UNIX timestamp.

Synopsis

int jdtounix(JD);
int JD: Julian day count

Returns

UNIX timestamp; FALSE if an invalid Julian day count is specified

Description

jdtounix() converts a Julian day count to a UNIX timestamp. The function returns FALSE if the Julian day count is outside the displayable range of the UNIX timestamp (Julian day counts 2440588 to 2465343 for Gregorian calendar years 1970 to 2037).

Note

Available in PHP 4.0.0 RC2 or greater

See also

To convert a UNIX timestamp to a Julian day count:

unixtojd()

To get a Julian day count from another calendar system, see the various *tojd() functions.

Example

Example 79. Convert a Julian day count to a UNIX timestamp

$julian_day = 2451202;
$unix_timestamp = jdtounix ($julian_day);
echo "The UNIX timestamp for Julian day count $julian_day is $unix_timestamp";



PHP Functions Essential Reference. Copyright © 2002 by New Riders Publishing (Authors: Zak Greant, Graeme Merrall, Torben Wilson, Brett Michlitsch). This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later (the latest version is presently available at http://www.opencontent.org/openpub/). The authors of this book have elected not to choose any options under the OPL. This online book was obtained from http://www.fooassociates.com/phpfer/ and is designed to provide information about the PHP programming language, focusing on PHP version 4.0.4 for the most part. The information is provided on an as-is basis, and no warranty or fitness is implied. All persons and entities shall have neither liability nor responsibility to any person or entity with respect to any loss or damage arising from the information contained in this book.

Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.