[Issue 8890] Adapt timet to 64-bit long