Date.now shim