|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
After a while of studying different softwares, I've still been getting
confused on how to make a timezone management script to display time in different time zones. Like right now im in -0600 CST GMT, how would I create a script that would work on any server that would allow me to display my current time from -12 to 12 GMT in a select box so others could pick their own time also. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Lamonte H wrote:
> After a while of studying different softwares, I've still been getting > confused on how to make a timezone management script to display time in > different time zones. Like right now im in -0600 CST GMT, how would I > create a script that would work on any server that would allow me to display > my current time from -12 to 12 GMT in a select box so others could pick > their own time also. > Don't forget, there are a few time zones that are off by 30 minutes -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On Wed, Mar 12, 2008 at 10:50 AM, Jim Lucas <lists@cmsws.com> wrote:
> > Lamonte H wrote: > > After a while of studying different softwares, I've still been getting > > confused on how to make a timezone management script to display time in > > different time zones. Like right now im in -0600 CST GMT, how would I > > create a script that would work on any server that would allow me to display > > my current time from -12 to 12 GMT in a select box so others could pick > > their own time also. > > > > Don't forget, there are a few time zones that are off by 30 minutes You are correct, sir! This is why you may want to check into using date("O"); to check the offset. -- </Dan> Daniel P. Brown Senior Unix Geek <? while(1) { $me = $mind--; sleep(86400); } ?> |
|
![]() |
| Outils de la discussion | |
|
|