unixtojd

Convert Unix timestamp to Julian Day

Description

intfalse unixtojd(intnull $timestamp = null)

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).

Parameters

timestamp

A unix timestamp to convert.

Return Values

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

Changelog

Version Description
8.0.0 timestamp is nullable now.

See Also

  • jdtounix