PluginProbe
Timed Content / 1.2
Timed Content v1.2
2.99 trunk 1.0 1.1 1.2 2.0 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.10 2.11 2.12 2.15 2.2 2.3 2.3.1 2.4 2.5 2.5.1 2.50 2.51 2.52 All 67 releases
timed-content / tinymce_plugin / js / anytimetz.js

anytimetz.js in Timed Content 1.2, at tinymce_plugin/js/anytimetz.js

255 lines 7.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*****************************************************************************
2 * FILE: anytimetz.js - The Any+Time(TM) JavaScript Library
3 * Basic Time Zone Support (source)
4 *
5 * VERSION: 4.2013.03.15.a
6 *
7 * Copyright 2008-2013 Andrew M. Andrews III (www.AMA3.com). Some Rights
8 * Reserved. This work licensed under the Creative Commons Attribution-
9 * Noncommercial-Share Alike 3.0 Unported License except in jurisdicitons
10 * for which the license has been ported by Creative Commons International,
11 * where the work is licensed under the applicable ported license instead.
12 * For a copy of the unported license, visit
13 * http://creativecommons.org/licenses/by-nc-sa/3.0/
14 * or send a letter to Creative Commons, 171 Second Street, Suite 300,
15 * San Francisco, California, 94105, USA. For ported versions of the
16 * license, visit http://creativecommons.org/international/
17 *
18 * Alternative licensing arrangements may be made by contacting the
19 * author at http://www.AMA3.com/contact/
20 *
21 * This file adds basic labels for major time zones to the Any+Time(TM)
22 * JavaScript Library. Time zone support is extremely complicated, and
23 * ECMA-262 (JavaScript) provides little support. Developers are expected
24 * to tailor this file to meet their needs, mostly by removing lines that
25 * are not required by their users, and/or by removing either abbreviated
26 * (before double-dash) or long (after double-dash) names from the strings.
27 *
28 * Note that there is no automatic detection of daylight savings time
29 * (AKA summer time), due to lack of support in JavaScript and the
30 * time-prohibitive complexity of attempting such support in code.
31 * If you want to take a stab at it, let me know; if you want to pay me
32 * large sums of money to add it, again, let me know. :-p
33 *
34 * This file should be included AFTER anytime.js (or anytimec.js) in any
35 * HTML page that requires it.
36 *
37 * Any+Time is a trademark of Andrew M. Andrews III.
38 *
39 ****************************************************************************/
40
41 //=============================================================================
42 // AnyTime.utcLabel is an array of arrays, indexed by UTC offset IN MINUTES
43 // (not hours-and-minutes). This is used by AnyTime.Converter to display
44 // time zone labels when the "%@" format specifier is used. It is also used
45 // by AnyTime.widget() to determine which time zone labels to offer as valid
46 // choices when a user attempts to change the time zone. NOTE: Positive
47 // indicies are NOT signed.
48 //
49 // Each sub-array contains a series of strings, each of which is a label
50 // for a time-zone having the corresponding UTC offset. The first string in
51 // each sub-array is the default label for that UTC offset (the one used by
52 // AnyTime.Converter.format() if utcFormatOffsetSubIndex is not specified and
53 // setUtcFormatOffsetSubIndex() is not called.
54 //
55 // To overcome a bug in Firefox 21 IRT negative array indicies, the initial
56 // utcLabel must be defined as an object even though it is used as an array.
57 //=============================================================================
58
59 AnyTime.utcLabel = {};
60 AnyTime.utcLabel[-720]=[
61 'BIT--Baker Island Time'
62 ];
63 AnyTime.utcLabel[-660]=[
64 'SST--Samoa Standard Time'
65 ];
66 AnyTime.utcLabel[-600]=[
67 'CKT--Cook Island Time'
68 ,'HAST--Hawaii-Aleutian Standard Time'
69 ,'TAHT--Tahiti Time'
70 ];
71 AnyTime.utcLabel[-540]=[
72 'AKST--Alaska Standard Time'
73 ,'GIT--Gambier Island Time'
74 ];
75 AnyTime.utcLabel[-510]=[
76 'MIT--Marquesas Islands Time'
77 ];
78 AnyTime.utcLabel[-480]=[
79 'CIST--Clipperton Island Standard Time'
80 ,'PST--Pacific Standard Time (North America)'
81 ];
82 AnyTime.utcLabel[-420]=[
83 'MST--Mountain Standard Time (North America)'
84 ,'PDT--Pacific Daylight Time (North America)'
85 ];
86 AnyTime.utcLabel[-360]=[
87 'CST--Central Standard Time (North America)'
88 ,'EAST--Easter Island Standard Time'
89 ,'GALT--Galapagos Time'
90 ,'MDT--Mountain Daylight Time (North America)'
91 ];
92 AnyTime.utcLabel[-300]=[
93 'CDT--Central Daylight Time (North America)'
94 ,'COT--Colombia Time'
95 ,'ECT--Ecuador Time'
96 ,'EST--Eastern Standard Time (North America)'
97 ];
98 AnyTime.utcLabel[-240]=[
99 'AST--Atlantic Standard Time'
100 ,'BOT--Bolivia Time'
101 ,'CLT--Chile Standard Time'
102 ,'COST--Colombia Summer Time'
103 ,'ECT--Eastern Caribbean Time'
104 ,'EDT--Eastern Daylight Time (North America)'
105 ,'FKST--Falkland Islands Standard Time'
106 ,'GYT--Guyana Time'
107 ];
108 AnyTime.utcLabel[-210]=[
109 'VET--Venezuelan Standard Time'
110 ];
111 AnyTime.utcLabel[-180]=[
112 'ART--Argentina Time'
113 ,'BRT--Brasilia Time'
114 ,'CLST--Chile Summer Time'
115 ,'GFT--French Guiana Time'
116 ,'UYT--Uruguay Standard Time'
117 ];
118 AnyTime.utcLabel[-150]=[
119 'NT--Newfoundland Time'
120 ];
121 AnyTime.utcLabel[-120]=[
122 'GST--South Georgia and the South Sandwich Islands'
123 ,'UYST--Uruguay Summer Time'
124 ];
125 AnyTime.utcLabel[-90]=[
126 'NDT--Newfoundland Daylight Time'
127 ];
128 AnyTime.utcLabel[-60]=[
129 'AZOST--Azores Standard Time'
130 ,'CVT--Cape Verde Time'
131 ];
132 AnyTime.utcLabel[0]=[
133 'GMT--Greenwich Mean Time'
134 ,'WET--Western European Time'
135 ];
136 AnyTime.utcLabel[60]=[
137 'BST--British Summer Time'
138 ,'CET--Central European Time'
139 ];
140 AnyTime.utcLabel[60]=[
141 'WAT--West Africa Time'
142 ,'WEST--Western European Summer Time'
143 ];
144 AnyTime.utcLabel[120]=[
145 'CAT--Central Africa Time'
146 ,'CEST--Central European Summer Time'
147 ,'EET--Eastern European Time'
148 ,'IST--Israel Standard Time'
149 ,'SAST--South African Standard Time'
150 ];
151 AnyTime.utcLabel[180]=[
152 'AST--Arab Standard Time (Kuwait/Riyadh)'
153 ,'AST--Arabic Standard Time (Baghdad)'
154 ,'EAT--East Africa Time'
155 ,'EEST--Eastern European Summer Time'
156 ,'MSK--Moscow Standard Time'
157 ];
158 AnyTime.utcLabel[210]=[
159 'IRST--Iran Standard Time'
160 ];
161 AnyTime.utcLabel[240]=[
162 'AMT--Armenia Time'
163 ,'AST--Arabian Standard Time (Abu Dhabi/Muscat)'
164 ,'AZT--Azerbaijan Time'
165 ,'GET--Georgia Standard Time'
166 ,'MUT--Mauritius Time'
167 ,'RET--R�union Time'
168 ,'SAMT--Samara Time'
169 ,'SCT--Seychelles Time'
170 ];
171 AnyTime.utcLabel[270]=[
172 'AFT--Afghanistan Time'
173 ];
174 AnyTime.utcLabel[300]=[
175 'AMST--Armenia Summer Time'
176 ,'HMT--Heard and McDonald Islands Time'
177 ,'PKT--Pakistan Standard Time'
178 ,'YEKT--Yekaterinburg Time'
179 ];
180 AnyTime.utcLabel[330]=[
181 'IST--Indian Standard Time'
182 ,'SLT--Sri Lanka Time'
183 ];
184 AnyTime.utcLabel[345]=[
185 'NPT--Nepal Time'
186 ];
187 AnyTime.utcLabel[360]=[
188 'BIOT--British Indian Ocean Time'
189 ,'BST--Bangladesh Standard Time'
190 ,'BTT--Bhutan Time'
191 ,'OMST--Omsk Time'
192 ];
193 AnyTime.utcLabel[390]=[
194 'CCT--Cocos Islands Time'
195 ,'MST--Myanmar Standard Time'
196 ];
197 AnyTime.utcLabel[420]=[
198 'CXT--Christmas Island Time'
199 ,'KRAT--Krasnoyarsk Time'
200 ,'THA--Thailand Standard Time'
201 ];
202 AnyTime.utcLabel[480]=[
203 'ACT--ASEAN Common Time'
204 ,'AWST--Australian Western Standard Time'
205 ,'BDT--Brunei Time'
206 ,'CST--China Standard Time'
207 ,'HKT--Hong Kong Time'
208 ,'IRKT--Irkutsk Time'
209 ,'MST--Malaysian Standard Time'
210 ,'PST--Philippine Standard Time'
211 ,'SST--Singapore Standard Time'
212 ];
213 AnyTime.utcLabel[540]=[
214 'JST--Japan Standard Time'
215 ,'KST--Korea Standard Time'
216 ,'YAKT--Yakutsk Time'
217 ];
218 AnyTime.utcLabel[570]=[
219 'ACST--Australian Central Standard Time'
220 ];
221 AnyTime.utcLabel[600]=[
222 'AEST--Australian Eastern Standard Time'
223 ,'ChST--Chamorro Standard Time'
224 ,'VLAT--Vladivostok Time'
225 ];
226 AnyTime.utcLabel[630]=[
227 'LHST--Lord Howe Standard Time'
228 ];
229 AnyTime.utcLabel[660]=[
230 'MAGT--Magadan Time'
231 ,'SBT--Solomon Islands Time'
232 ];
233 AnyTime.utcLabel[690]=[
234 'NFT--Norfolk Time'
235 ];
236 AnyTime.utcLabel[720]=[
237 'FJT--Fiji Time'
238 ,'GILT--Gilbert Island Time'
239 ,'PETT--Kamchatka Time'
240 ];
241 AnyTime.utcLabel[765]=[
242 'CHAST--Chatham Standard Time'
243 ];
244 AnyTime.utcLabel[780]=[
245 'PHOT--Phoenix Island Time'
246 ];
247 AnyTime.utcLabel[840]=[
248 'LINT--Line Islands Time'
249 ];
250
251 //
252 //END OF FILE
253 //
254 //if(window.location.hostname.length&&(window.location.hostname!='www.ama3.com')&&(window.location.hostname!='dev2.ama3.com'))alert('REMOVE THE LAST LINE FROM anytimetz.js!');
255