PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > Timezone management
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Timezone management

Réponse
 
LinkBack Outils de la discussion
Vieux 11/03/2008, 17h10   #1
Lamonte H
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Timezone management

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.

  Réponse avec citation
Vieux 12/03/2008, 16h50   #2
Jim Lucas
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Timezone management

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
  Réponse avec citation
Vieux 12/03/2008, 16h57   #3
Daniel Brown
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Timezone management

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); } ?>
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 15h21.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08273 seconds with 11 queries