Re: [PHP] PHP Time

2012-07-02 Thread Daniel Brown
On Mon, Jul 2, 2012 at 4:00 PM, Rob Weissenburger r...@fiberuplink.com 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()

Re: [PHP] PHP Time

2012-07-02 Thread Geoff Shang
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.

RE: [PHP] PHP Time

2012-07-02 Thread Rob Weissenburger
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

Re: [PHP] PHP time zone

2004-04-14 Thread David Robley
[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 time

Re: [PHP] PHP time zone

2004-04-13 Thread Red Wingate
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 not my

Re: [PHP] PHP time zone

2004-04-13 Thread Tom Rogers
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 have