Timezone support in UTC format like in Windows 7
Hi All, We wanted to implement timezone support from our web interface where user should be able to select timezone in the following UTC format similar to windows 7 OS. Is it possible to fetch records for timezone from tz database in following UTC format to construct timezone drop down? if yes then how can we set timezone in UTC format like *set timezone UTC+05:30 Chennai,Kolkata,Mumbai,New Delhi* Thanks, KAILASH KUMAR JAIN BE cs Post at: kailashkumarp@gmail.com Legal Warning: This message may contain privileged and confidential information. If you are not the intended recipient or for any reason think that this message may have been address to you or reached you as a mistake, its requested that you must not disseminate,copy or take any action in reliance on it and I ask you to delete all copies from your mail box and computer system and also notify me immediately by return e-mail.
kailash kumar wrote:
Is it possible to fetch records for timezone from tz database in following UTC format to construct timezone drop down?
*set timezone UTC+05:30 Chennai,Kolkata,Mumbai,New Delhi*
Sorry, the tz database does not contain information about Chennai, Mumbai, etc. Although you could derive from it a similar string (which would mention only Kolkata), that would require nontrivial programming. It sounds like you're asking about access to the MS-Windows time zone registry, which is not something we deal with on this list. You might try asking in a Microsoft-specific forum.
On Thu, Aug 25, 2016, at 11:19, Paul Eggert wrote:
kailash kumar wrote:
Is it possible to fetch records for timezone from tz database in following UTC format to construct timezone drop down?
*set timezone UTC+05:30 Chennai,Kolkata,Mumbai,New Delhi*
Sorry, the tz database does not contain information about Chennai, Mumbai, etc. Although you could derive from it a similar string (which would mention only Kolkata), that would require nontrivial programming.
To my understanding, the string that can and should be displayed to end users is "India" (there being only one entry for "IN" in zone{,1970}.tab, with - naturally - no description comment saying what subset of India it applies to), not "Kolkata" or the names of any other cities.
You may want to look at my demo here: http://timezonepickerdemo.azurewebsites.net/ If you need more detailed guidance, feel free to reach out to me directly off-list. I work at Microsoft also, so I may be able to answer questions related to your Windows 7 experiences. -Matt ________________________________ From: tz-bounces@iana.org <tz-bounces@iana.org> on behalf of kailash kumar <kailashkumarp@gmail.com> Sent: Thursday, August 25, 2016 3:47 AM To: tz@iana.org Subject: [tz] Timezone support in UTC format like in Windows 7 Hi All, We wanted to implement timezone support from our web interface where user should be able to select timezone in the following UTC format similar to windows 7 OS. Is it possible to fetch records for timezone from tz database in following UTC format to construct timezone drop down? if yes then how can we set timezone in UTC format like set timezone UTC+05:30 Chennai,Kolkata,Mumbai,New Delhi [cid:ii_isa6r5of0_156c13dc5b86e2f5] Thanks, KAILASH KUMAR JAIN BE cs Post at: kailashkumarp@gmail.com<mailto:kailashkumarp@gmail.com> Legal Warning: This message may contain privileged and confidential information. If you are not the intended recipient or for any reason think that this message may have been address to you or reached you as a mistake, its requested that you must not disseminate,copy or take any action in reliance on it and I ask you to delete all copies from your mail box and computer system and also notify me immediately by return e-mail.
The TZ database only holds data about timezone information designed for use by computers. The TZ project does not maintain a database of identifiers for human use. Such a database would need to be maintained for each language, as many locations have different names in different languages. (Wien vs Vienna, for example.) The Unicode CLDR project might be a good place to start: http://cldr.unicode.org/translation/timezones --Ted On 2016-08-25 3:47, kailash kumar wrote:
Hi All,
We wanted to implement timezone support from our web interface where user should be able to select timezone in the following UTC format similar to windows 7 OS.
Is it possible to fetch records for timezone from tz database in following UTC format to construct timezone drop down? if yes then how can we set timezone in UTC format like
/*set timezone UTC+05:30 Chennai,Kolkata,Mumbai,New Delhi*/
Thanks, KAILASH KUMAR JAIN BE cs
Post at: kailashkumarp@gmail.com <mailto:kailashkumarp@gmail.com>
Legal Warning: This message may contain privileged and confidential information. If you are not the intended recipient or for any reason think that this message may have been address to you or reached you as a mistake, its requested that you must not disseminate,copy or take any action in reliance on it and I ask you to delete all copies from your mail box and computer system and also notify me immediately by return e-mail.
participants (5)
-
kailash kumar -
Matt Johnson -
Paul Eggert -
Random832 -
Ted Cabeen