Re: time stamps
| From: | Joona Kulmala | Date: | Sun, 20 Oct 2002 09:19:37 +0000 |
| Subject: | Re: time stamps | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120659@lists.php.net to get a copy of this message | ||
On Sun, Oct 20, 2002 at 02:03:08PM +1300, Philip J. Newman wrote:
> Ok the server that i run my site on is in some american time and most of the
> users are in new zealand, how can i make the time stamp ADD +16 Hours.
> Any ideas
If you are using epoch timestamp (as I recommend)
which you can get withing time()-function, you can
just do the following:
$time = time()+(16*60);
But if you're using that very often, you should
your own time()-function:
function mytime () {
return (time() + ( 16 * 60 ));
}
Hope this was even a bit helpfull.
--
Joona Kulmala
joona@phpfi.org