You are here: Re: How to Enumerate and Calculate Timezones? « PHP Programming Language « IT news, forums, messages
Re: How to Enumerate and Calculate Timezones?

Posted by John Gordon on 06/14/07 16:08

In <5a2dncC2kf9GM-3bnZ2dnUVZ_gCdnZ2d@giganews.com> "David T. Ashley" <dta@e3ft.com> writes:

> How do I enumerate all possible timezones from a PHP script or compiled 'C'
> program?

Most websites I've seen just give the user 24 possible choices, for the
24 commonly-used time zones.

> Given a specific timezone, how do I get the time adjustment from UTC (which
> can vary, based on daylight savings rules)?

Most systems should have a localtime() function which calculates that for
you automatically.

--
John Gordon A is for Amy, who fell down the stairs
gordon@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"

 

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

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