Backend Development 2 min read

jdtounix – Convert Julian Day Number to Unix Timestamp (PHP)

The jdtounix function takes a Julian Day number within the range 2440588‑2465342 and returns the corresponding Unix timestamp for the start of that day in local time, or FALSE if the value falls outside the supported Gregorian years 1970‑2037.

Laravel Tech Community
Laravel Tech Community
Laravel Tech Community
jdtounix – Convert Julian Day Number to Unix Timestamp (PHP)

jdtounix – Convert Julian Day Number to Unix Timestamp (PHP)

int jdtounix ( int $jday)

This function returns a Unix timestamp representing the beginning of the given Julian Day number. If the supplied $jday is not within the Unix‑time range (Gregorian years 1970‑2037, i.e., 2440588 ≤ $jday ≤ 2465342 ), the function returns FALSE . The returned timestamp reflects local time, not GMT.

Parameter

jday : An integer Julian Day number between 2440588 and 2465342.

Return Value

Unix timestamp (integer) for the start of the specified Julian Day.

FALSE if the input is out of the supported range.

BackendPHPDate ConversionJulian DayUnix timestampTime Functions
Laravel Tech Community
Written by

Laravel Tech Community

Specializing in Laravel development, we continuously publish fresh content and grow alongside the elegant, stable Laravel framework.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.