|
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]
|