PHP 8.5.0 Alpha 4 available for testing

Voting

: eight minus six?
(Example: nine)

The Note You're Voting On

fabio at llgp dot org
18 years ago
If you need an easy way to convert a decimal julian day to an unix timestamp you can use:

$unixTimeStamp = ($julianDay - 2440587.5) * 86400;

2440587.5 is the julian day at 1/1/1970 0:00 UTC
86400 is the number of seconds in a day

<< Back to user notes page

To Top