#45343 [Opn->Bgs]: time() description is incredibly confusing.

From: Date: Tue, 24 Jun 2008 06:42:05 +0000
Subject: #45343 [Opn->Bgs]: time() description is incredibly confusing.
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-903@lists.php.net to get a copy of this message
ID: 45343 Updated by: derick@php.net Reported By: jabbsjabbsjabbs at hotmail dot com -Status: Open +Status: Bogus Bug Type: Documentation problem PHP Version: Irrelevant New Comment: No, that's not true. The epoch is really defined as January 1 1970 00:00:00 GMT and is *not* effected by the current locale timezone. The same epoch second is the same everywhere in the world, although the *local* time differs. Previous Comments: ------------------------------------------------------------------------ [2008-06-24 01:26:02] jabbsjabbsjabbs at hotmail dot com Description: ------------ Returns the current time measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT). Since the Epoch is defined as a specific time and timezone, such a value as described is the same everywhere in the world, yet time() returns the local time. i.e. the number of seconds since January 1 1970 00:00:00 XXX where XXX is your current timezone. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45343&edit=1

« previous php.doc.bugs (#903) next »