That worked just perfectly. Thank you.
-Original Message-
From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of Daniel
Brown
Sent: Monday, July 02, 2012 3:02 PM
To: Rob Weissenburger
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP Time
On Mon, Jul 2, 2012 at 4:00 PM, Rob
On Mon, 2 Jul 2012, Rob Weissenburger wrote:
I know php time() gives the current unix time which you can format out to
a normal date and time. Is there a way to format a specific date and time
back to unix time?
mktime() and strtotime() will do it, depending on the form your time is
in. The
On Mon, Jul 2, 2012 at 4:00 PM, Rob Weissenburger wrote:
> Hello everyone,
>
> I know php time() gives the current unix time which you can format out to
> a normal date and time. Is there a way to format a specific date and time
> back to unix time?
Yup. Look at strtotime() and mktime():
[EMAIL PROTECTED] (Tom Rogers) wrote in
news:[EMAIL PROTECTED]:
> I have this in an auto_prepend file or you can put it before using any
> of the date() functions
>
> putenv('TZ=Australia/Brisbane');
>
But, but, that'll put the clock back 20 years and then add 30 minutes to
Central Standard
Hi,
Tuesday, April 13, 2004, 9:29:19 PM, you wrote:
n> how can get a specific time zone, not the server time.
n> example:
n> if the server time is 13:15:46 I need to output that time +5hours
n> so 18:15:46
n> because the hosting server time is not my local or other area time..
n> thanks
I h
Best:
use gmmktime() and add the required offset by:
$time_here = gmmktime() + ( $offset * 60 * 60 ) ;
> how can get a specific time zone, not the server time.
>
> example:
> if the server time is 13:15:46 I need to output that time +5hours
> so 18:15:46
>
> because the hosting server time is
6 matches
Mail list logo