unixtojd

(PHP 4, PHP 5, PHP 7)

unixtojdConvert Unix timestamp to Julian Day

Descrierea

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

Return the Julian Day for a Unix timestamp (seconds since 1.1.1970), or for the current day if no timestamp is given. Either way, the time is regarded as local time (not UTC).

Parametri

timestamp

A unix timestamp to convert.

Valorile întoarse

A julian day number as integer, sau false în cazul eșecului.

Istoricul schimbărilor

Versiune Descriere
8.0.0 timestamp is nullable now.

A se vedea și

  • jdtounix() - Convert Julian Day to Unix timestamp