PHP 8.5.0 Beta 1 available for testing

Voting

: nine plus zero?
(Example: nine)

The Note You're Voting On

seb at carbonauts dot com
21 years ago
Remember that unixtojd() assumes your timestamp is in GMT, but jdtounix() returns a timestamp in localtime.

This fooled me a few times.

So if you have:

$timestamp1 = time();
$timestamp2 = jdtounix(unixtojd($timestamp1));

Unless your localtime is the same as GMT, $timestamp1 will not equal $timestamp2.

<< Back to user notes page

To Top