You are here: Re: Possible to calculate localtime based on Country/State? « PHP Programming Language « IT news, forums, messages
Re: Possible to calculate localtime based on Country/State?

Posted by Richard Levasseur on 11/22/30 11:54

Kevin wrote:
> Hi all,
>
> Does anyone know of a script or package that will allow me to calculate
> the localtime given a country code (and optional state/province for
> US/Canada)? It should factor in daylight saving time when applicable.
> If there are special cases where country + state isn't enough that's ok,
> a solution that's correct 95% of the time would be better than no
> solution at all.
>
> Thanks much,
> Kevin

In unix i'm fairly sure there is a directory full of different regions
with files describing the timezones.

Otherwise, you can probably find a list of states and their timezones
relatively easily. It wouldn't be hard to hand create a list, either,
its only, what? 50-60 areas?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация