Re: Simple Time Question

From: Date: Thu, 21 Oct 2004 20:47:12 +0000
Subject: Re: Simple Time Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-200032@lists.php.net to get a copy of this message
Ben Miller wrote:
Probably a stupid question, but hopefully has a simple answer. Is there a way to get Grenwich Mean time? time() and date() functions that I can see only seem to get date/time from the server, which knowing where that is, could easily figure out GM time, but.... would rather go the other way.
gmdate -- Format a GMT/UTC date/time gmmktime -- Get UNIX timestamp for a GMT date gmstrftime -- Format a GMT/UTC time/date according to locale settings

« previous php.general (#200032) next »