Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

unixtojd

Description

The unixtojd of Calendar for PHP convert Unix timestamp to Julian Day.

Syntax

unixtojd(
    ?int $timestamp = null
): int|false

Parameters

timestamp

A unix timestamp to convert.

Return

Returns the julian day number as an integer, or false on failure.

Examples

1 · void

<?

$return = unixtojd();

echo $return;
2460621

2 · timestamp

<?

$timestamp = time();

$return = unixtojd($timestamp);

echo $return;
2460621
HomeMenu