unixtojd

Convert Unix timestamp to Julian Day

Syntax

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

Parameters

timestamp

A unix timestamp to convert.

Return

A julian day number as integer, or false on failure.

Examples

1 · void

<?

$return = unixtojd();

echo $return;

?>
2459977

2 · timestamp

<?

$timestamp = time();

$return = unixtojd($timestamp);

echo $return;

?>
2459977

cal_days_in_month

cal_from_jd

cal_info

cal_to_jd

easter_date

easter_days

frenchtojd

gregoriantojd

jddayofweek

jdmonthname

jdtofrench

jdtogregorian

jdtojewish

jdtojulian

jdtounix

jewishtojd

juliantojd

PHP

Home Menu