Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2000071

Re: [PHP] PHP: date - in addtion From: Adrian Teasdale (adrian <email protected>)
Date: 07/08/00

Quick question. I've been following this date thread and it is fine if all
of your visitors are within the same timezone as your server. What can be
done if not? Is there any way of checking a persons date and time from
their browser (using javascript?) and then passing that as a a variable to
PHP?

Just wondering

Ade

> like this?? up your to use it or no :)
>
> <?
> $today_orig = date( "g:i a F dS Y",time()+0*3600);
> $today_modif = date( "g:i a F dS Y",time()+14*3600);
> echo $today_orig;
> echo "<br>";
> echo $today_modif;
> ?>
>
> other sample on http://www.zend.com/codex.php?id=50&single=1
>
> At 16:19 08/07/00 -0400, you wrote:
> >Hey, I am making a php script to display the date. I am using the date()
> >function.
> >When I run the script it displays the date as:
> >4:16am Saturday, July 8th, 2000
> >when the date I want it to display is:
> >2:16pm Saturday, July 8th, 2000
> >How can I configure it to do this?
> >
> >-Ross Palmer
>
> --
> Doubt whom you will, but never yourself.
> http://php.klik.or.id
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>