Easy Tutorial
❮ Func String Chr Index ❯

PHP unixtojd() Function

PHP Calendar Reference Manual

Example

Convert Unix timestamp to Julian Day count:


Definition and Usage

The unixtojd() function converts a Unix timestamp to a Julian Day count.

Note: Unix timestamp represents the number of seconds since the Gregorian calendar date January 1, 1970.

Tip: See the jdtounix() function to convert a Julian Day count to a Unix timestamp.

Syntax

Parameter Description
timestamp Optional. Specifies the Unix timestamp to convert.

Technical Details

Return Value: Returns the Julian Day number for the Unix timestamp (number of seconds since January 1, 1970), or the Julian Day number for the current time if no timestamp is given.
PHP Version: 4+
--- ---

❮ Func String Chr Index ❯