Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 1 | ########### |
| 2 | Date Helper |
| 3 | ########### |
| 4 | |
| 5 | The Date Helper file contains functions that help you work with dates. |
| 6 | |
| 7 | .. contents:: Page Contents |
| 8 | |
| 9 | Loading this Helper |
| 10 | =================== |
| 11 | |
| 12 | This helper is loaded using the following code |
| 13 | |
| 14 | :: |
| 15 | |
| 16 | $this->load->helper('date'); |
| 17 | |
| 18 | The following functions are available: |
| 19 | |
| 20 | now() |
| 21 | ===== |
| 22 | |
Iban Eguia | 7bf0a4f | 2012-03-27 18:36:15 +0200 | [diff] [blame] | 23 | Returns the current time as a Unix timestamp, based on the "timezone" parameter. |
Iban Eguia | e15e3dd | 2012-06-09 23:52:27 +0200 | [diff] [blame^] | 24 | All PHP available timezones are supported. You can also use 'local' timezone, and |
| 25 | it will return time(). |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 26 | |
Iban Eguia | 7bf0a4f | 2012-03-27 18:36:15 +0200 | [diff] [blame] | 27 | .. php:method:: now($timezone = NULL) |
| 28 | |
| 29 | :param string $timezone: The timezone you want to be returned |
| 30 | :returns: integer |
| 31 | |
| 32 | :: |
| 33 | |
| 34 | $tz = "Australia/Victoria"; |
| 35 | echo now($tz); |
| 36 | |
| 37 | If a timezone is not provided, it will return time() based on "timezone" setting. |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 38 | |
| 39 | mdate() |
| 40 | ======= |
| 41 | |
| 42 | This function is identical to PHPs `date() <http://www.php.net/date>`_ |
| 43 | function, except that it lets you use MySQL style date codes, where each |
| 44 | code letter is preceded with a percent sign: %Y %m %d etc. |
| 45 | |
| 46 | The benefit of doing dates this way is that you don't have to worry |
| 47 | about escaping any characters that are not date codes, as you would |
| 48 | normally have to do with the date() function. Example |
| 49 | |
| 50 | .. php:method:: mdate($datestr = '', $time = '') |
| 51 | |
| 52 | :param string $datestr: Date String |
| 53 | :param integer $time: time |
| 54 | :returns: integer |
| 55 | |
| 56 | |
| 57 | :: |
| 58 | |
| 59 | $datestring = "Year: %Y Month: %m Day: %d - %h:%i %a"; |
| 60 | $time = time(); |
| 61 | echo mdate($datestring, $time); |
| 62 | |
| 63 | If a timestamp is not included in the second parameter the current time |
| 64 | will be used. |
| 65 | |
| 66 | standard_date() |
| 67 | =============== |
| 68 | |
| 69 | Lets you generate a date string in one of several standardized formats. |
| 70 | Example |
| 71 | |
| 72 | .. php:method:: standard_date($fmt = 'DATE_RFC822', $time = '') |
| 73 | |
| 74 | :param string $fmt: the chosen format |
| 75 | :param string $time: Unix timestamp |
| 76 | :returns: string |
| 77 | |
| 78 | :: |
| 79 | |
| 80 | $format = 'DATE_RFC822'; |
| 81 | $time = time(); |
| 82 | echo standard_date($format, $time); |
| 83 | |
| 84 | The first parameter must contain the format, the second parameter must |
| 85 | contain the date as a Unix timestamp. |
| 86 | |
| 87 | Supported formats: |
| 88 | |
| 89 | +----------------+------------------------+-----------------------------------+ |
| 90 | | Constant | Description | Example | |
| 91 | +================+========================+===================================+ |
| 92 | | DATE_ATOM | Atom | 2005-08-15T16:13:03+0000 | |
| 93 | +----------------+------------------------+-----------------------------------+ |
| 94 | | DATE_COOKIE | HTTP Cookies | Sun, 14 Aug 2005 16:13:03 UTC | |
| 95 | +----------------+------------------------+-----------------------------------+ |
| 96 | | DATE_ISO8601 | ISO-8601 | 2005-08-14T16:13:03+00:00 | |
| 97 | +----------------+------------------------+-----------------------------------+ |
| 98 | | DATE_RFC822 | RFC 822 | Sun, 14 Aug 05 16:13:03 UTC | |
| 99 | +----------------+------------------------+-----------------------------------+ |
| 100 | | DATE_RFC850 | RFC 850 | Sunday, 14-Aug-05 16:13:03 UTC | |
| 101 | +----------------+------------------------+-----------------------------------+ |
| 102 | | DATE_RFC1036 | RFC 1036 | Sunday, 14-Aug-05 16:13:03 UTC | |
| 103 | +----------------+------------------------+-----------------------------------+ |
| 104 | | DATE_RFC1123 | RFC 1123 | Sun, 14 Aug 2005 16:13:03 UTC | |
| 105 | +----------------+------------------------+-----------------------------------+ |
| 106 | | DATE_RFC2822 | RFC 2822 | Sun, 14 Aug 2005 16:13:03 +0000 | |
| 107 | +----------------+------------------------+-----------------------------------+ |
| 108 | | DATE_RSS | RSS | Sun, 14 Aug 2005 16:13:03 UTC | |
| 109 | +----------------+------------------------+-----------------------------------+ |
| 110 | | DATE_W3C | W3C | 2005-08-14T16:13:03+0000 | |
| 111 | +----------------+------------------------+-----------------------------------+ |
| 112 | |
| 113 | |
| 114 | local_to_gmt() |
| 115 | ============== |
| 116 | |
| 117 | Takes a Unix timestamp as input and returns it as GMT. |
| 118 | |
| 119 | .. php:method:: local_to_gmt($time = '') |
| 120 | |
| 121 | :param integer $time: Unix timestamp |
| 122 | :returns: string |
| 123 | |
| 124 | Example: |
| 125 | |
| 126 | :: |
| 127 | |
| 128 | $now = time(); |
| 129 | $gmt = local_to_gmt($now); |
| 130 | |
| 131 | gmt_to_local() |
| 132 | ============== |
| 133 | |
| 134 | Takes a Unix timestamp (referenced to GMT) as input, and converts it to |
| 135 | a localized timestamp based on the timezone and Daylight Saving time |
| 136 | submitted. |
| 137 | |
| 138 | .. php:method:: gmt_to_local($time = '', $timezone = 'UTC', $dst = FALSE) |
| 139 | |
| 140 | :param integer $time: Unix timestamp |
| 141 | :param string $timezone: timezone |
| 142 | :param boolean $dst: whether DST is active |
| 143 | :returns: integer |
| 144 | |
| 145 | Example |
| 146 | |
| 147 | :: |
| 148 | |
| 149 | $timestamp = '1140153693'; |
| 150 | $timezone = 'UM8'; |
| 151 | $daylight_saving = TRUE; |
| 152 | echo gmt_to_local($timestamp, $timezone, $daylight_saving); |
| 153 | |
| 154 | |
| 155 | .. note:: For a list of timezones see the reference at the bottom of this page. |
| 156 | |
| 157 | |
| 158 | mysql_to_unix() |
| 159 | =============== |
| 160 | |
| 161 | Takes a MySQL Timestamp as input and returns it as Unix. |
| 162 | |
| 163 | .. php:method:: mysql_to_unix($time = '') |
| 164 | |
| 165 | :param integer $time: Unix timestamp |
| 166 | :returns: integer |
| 167 | |
| 168 | Example |
| 169 | |
| 170 | :: |
| 171 | |
Fumito Mizuno | bb859fd | 2011-10-14 20:05:34 +0900 | [diff] [blame] | 172 | $mysql = '20061124092345'; |
| 173 | $unix = mysql_to_unix($mysql); |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 174 | |
| 175 | unix_to_human() |
| 176 | =============== |
| 177 | |
| 178 | Takes a Unix timestamp as input and returns it in a human readable |
| 179 | format with this prototype |
| 180 | |
| 181 | .. php:method:: unix_to_human($time = '', $seconds = FALSE, $fmt = 'us') |
| 182 | |
| 183 | :param integer $time: Unix timestamp |
| 184 | :param boolean $seconds: whether to show seconds |
| 185 | :param string $fmt: format: us or euro |
| 186 | :returns: integer |
| 187 | |
| 188 | Example |
| 189 | |
| 190 | :: |
| 191 | |
| 192 | YYYY-MM-DD HH:MM:SS AM/PM |
| 193 | |
| 194 | This can be useful if you need to display a date in a form field for |
| 195 | submission. |
| 196 | |
| 197 | The time can be formatted with or without seconds, and it can be set to |
| 198 | European or US format. If only the timestamp is submitted it will return |
| 199 | the time without seconds formatted for the U.S. Examples |
| 200 | |
| 201 | :: |
| 202 | |
| 203 | $now = time(); |
| 204 | echo unix_to_human($now); // U.S. time, no seconds |
| 205 | echo unix_to_human($now, TRUE, 'us'); // U.S. time with seconds |
| 206 | echo unix_to_human($now, TRUE, 'eu'); // Euro time with seconds |
| 207 | |
| 208 | human_to_unix() |
| 209 | =============== |
| 210 | |
| 211 | The opposite of the above function. Takes a "human" time as input and |
| 212 | returns it as Unix. This function is useful if you accept "human" |
| 213 | formatted dates submitted via a form. Returns FALSE (boolean) if the |
| 214 | date string passed to it is not formatted as indicated above. |
| 215 | |
| 216 | .. php:method:: human_to_unix($datestr = '') |
| 217 | |
| 218 | :param integer $datestr: Date String |
| 219 | :returns: integer |
| 220 | |
| 221 | Example: |
| 222 | |
| 223 | :: |
| 224 | |
| 225 | $now = time(); |
| 226 | $human = unix_to_human($now); |
| 227 | $unix = human_to_unix($human); |
| 228 | |
| 229 | nice_date() |
| 230 | =========== |
| 231 | |
| 232 | This function can take a number poorly-formed date formats and convert |
| 233 | them into something useful. It also accepts well-formed dates. |
| 234 | |
| 235 | The function will return a Unix timestamp by default. You can, |
| 236 | optionally, pass a format string (the same type as the PHP date function |
| 237 | accepts) as the second parameter. |
| 238 | |
| 239 | .. php:method:: nice_date($bad_date = '', $format = FALSE) |
| 240 | |
| 241 | :param integer $bad_date: The terribly formatted date-like string |
| 242 | :param string $format: Date format to return (same as php date function) |
| 243 | :returns: string |
| 244 | |
| 245 | Example |
| 246 | |
| 247 | :: |
| 248 | |
| 249 | $bad_time = 199605 // Should Produce: 1996-05-01 |
| 250 | $better_time = nice_date($bad_time,'Y-m-d'); |
| 251 | $bad_time = 9-11-2001 // Should Produce: 2001-09-11 |
| 252 | $better_time = nice_date($human,'Y-m-d'); |
| 253 | |
| 254 | timespan() |
| 255 | ========== |
| 256 | |
| 257 | Formats a unix timestamp so that is appears similar to this |
| 258 | |
| 259 | :: |
| 260 | |
| 261 | 1 Year, 10 Months, 2 Weeks, 5 Days, 10 Hours, 16 Minutes |
| 262 | |
| 263 | The first parameter must contain a Unix timestamp. The second parameter |
| 264 | must contain a timestamp that is greater that the first timestamp. If |
Roger Herbert | b81f909 | 2012-03-12 12:46:02 +0000 | [diff] [blame] | 265 | the second parameter empty, the current time will be used. The third |
| 266 | parameter is optional and limits the number of time units to display. |
| 267 | The most common purpose for this function is to show how much time has |
| 268 | elapsed from some point in time in the past to now. |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 269 | |
Roger Herbert | b81f909 | 2012-03-12 12:46:02 +0000 | [diff] [blame] | 270 | .. php:method:: timespan($seconds = 1, $time = '', $units = '') |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 271 | |
| 272 | :param integer $seconds: a number of seconds |
| 273 | :param string $time: Unix timestamp |
Roger Herbert | b81f909 | 2012-03-12 12:46:02 +0000 | [diff] [blame] | 274 | :param integer $units: a number of time units to display |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 275 | :returns: string |
| 276 | |
| 277 | Example |
| 278 | |
| 279 | :: |
| 280 | |
| 281 | $post_date = '1079621429'; |
| 282 | $now = time(); |
Roger Herbert | b81f909 | 2012-03-12 12:46:02 +0000 | [diff] [blame] | 283 | $units = 2; |
| 284 | echo timespan($post_date, $now, $units); |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 285 | |
| 286 | .. note:: The text generated by this function is found in the following language |
| 287 | file: language/<your_lang>/date_lang.php |
| 288 | |
| 289 | days_in_month() |
| 290 | =============== |
| 291 | |
| 292 | Returns the number of days in a given month/year. Takes leap years into |
| 293 | account. |
| 294 | |
| 295 | .. php:method:: days_in_month($month = 0, $year = '') |
| 296 | |
| 297 | :param integer $month: a numeric month |
| 298 | :param integer $year: a numeric year |
| 299 | :returns: integer |
| 300 | |
| 301 | Example |
| 302 | |
| 303 | :: |
| 304 | |
| 305 | echo days_in_month(06, 2005); |
| 306 | |
| 307 | If the second parameter is empty, the current year will be used. |
| 308 | |
| 309 | timezones() |
| 310 | =========== |
| 311 | |
| 312 | Takes a timezone reference (for a list of valid timezones, see the |
| 313 | "Timezone Reference" below) and returns the number of hours offset from |
| 314 | UTC. |
| 315 | |
| 316 | .. php:method:: timezones($tz = '') |
| 317 | |
| 318 | :param string $tz: a numeric timezone |
| 319 | :returns: string |
| 320 | |
| 321 | Example |
| 322 | |
| 323 | :: |
| 324 | |
| 325 | echo timezones('UM5'); |
| 326 | |
| 327 | |
| 328 | This function is useful when used with `timezone_menu()`. |
| 329 | |
| 330 | timezone_menu() |
| 331 | =============== |
| 332 | |
| 333 | Generates a pull-down menu of timezones, like this one: |
| 334 | |
| 335 | |
| 336 | .. raw:: html |
| 337 | |
| 338 | <form action="#"> |
| 339 | <select name="timezones"> |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 340 | <option value='UM12'>(UTC -12:00) Baker/Howland Island</option> |
| 341 | <option value='UM11'>(UTC -11:00) Samoa Time Zone, Niue</option> |
| 342 | <option value='UM10'>(UTC -10:00) Hawaii-Aleutian Standard Time, Cook Islands, Tahiti</option> |
| 343 | <option value='UM95'>(UTC -9:30) Marquesas Islands</option> |
| 344 | <option value='UM9'>(UTC -9:00) Alaska Standard Time, Gambier Islands</option> |
| 345 | <option value='UM8'>(UTC -8:00) Pacific Standard Time, Clipperton Island</option> |
| 346 | <option value='UM7'>(UTC -7:00) Mountain Standard Time</option> |
| 347 | <option value='UM6'>(UTC -6:00) Central Standard Time</option> |
| 348 | <option value='UM5'>(UTC -5:00) Eastern Standard Time, Western Caribbean Standard Time</option> |
| 349 | <option value='UM45'>(UTC -4:30) Venezuelan Standard Time</option> |
| 350 | <option value='UM4'>(UTC -4:00) Atlantic Standard Time, Eastern Caribbean Standard Time</option> |
| 351 | <option value='UM35'>(UTC -3:30) Newfoundland Standard Time</option> |
| 352 | <option value='UM3'>(UTC -3:00) Argentina, Brazil, French Guiana, Uruguay</option> |
| 353 | <option value='UM2'>(UTC -2:00) South Georgia/South Sandwich Islands</option> |
| 354 | <option value='UM1'>(UTC -1:00) Azores, Cape Verde Islands</option> |
| 355 | <option value='UTC' selected='selected'>(UTC) Greenwich Mean Time, Western European Time</option> |
| 356 | <option value='UP1'>(UTC +1:00) Central European Time, West Africa Time</option> |
| 357 | <option value='UP2'>(UTC +2:00) Central Africa Time, Eastern European Time, Kaliningrad Time</option> |
| 358 | <option value='UP3'>(UTC +3:00) Moscow Time, East Africa Time</option> |
| 359 | <option value='UP35'>(UTC +3:30) Iran Standard Time</option> |
| 360 | <option value='UP4'>(UTC +4:00) Azerbaijan Standard Time, Samara Time</option> |
| 361 | <option value='UP45'>(UTC +4:30) Afghanistan</option> |
| 362 | <option value='UP5'>(UTC +5:00) Pakistan Standard Time, Yekaterinburg Time</option> |
| 363 | <option value='UP55'>(UTC +5:30) Indian Standard Time, Sri Lanka Time</option> |
| 364 | <option value='UP575'>(UTC +5:45) Nepal Time</option> |
| 365 | <option value='UP6'>(UTC +6:00) Bangladesh Standard Time, Bhutan Time, Omsk Time</option> |
| 366 | <option value='UP65'>(UTC +6:30) Cocos Islands, Myanmar</option> |
| 367 | <option value='UP7'>(UTC +7:00) Krasnoyarsk Time, Cambodia, Laos, Thailand, Vietnam</option> |
| 368 | <option value='UP8'>(UTC +8:00) Australian Western Standard Time, Beijing Time, Irkutsk Time</option> |
| 369 | <option value='UP875'>(UTC +8:45) Australian Central Western Standard Time</option> |
| 370 | <option value='UP9'>(UTC +9:00) Japan Standard Time, Korea Standard Time, Yakutsk Time</option> |
| 371 | <option value='UP95'>(UTC +9:30) Australian Central Standard Time</option> |
| 372 | <option value='UP10'>(UTC +10:00) Australian Eastern Standard Time, Vladivostok Time</option> |
| 373 | <option value='UP105'>(UTC +10:30) Lord Howe Island</option> |
| 374 | <option value='UP11'>(UTC +11:00) Magadan Time, Solomon Islands, Vanuatu</option> |
| 375 | <option value='UP115'>(UTC +11:30) Norfolk Island</option> |
| 376 | <option value='UP12'>(UTC +12:00) Fiji, Gilbert Islands, Kamchatka Time, New Zealand Standard Time</option> |
| 377 | <option value='UP1275'>(UTC +12:45) Chatham Islands Standard Time</option> |
| 378 | <option value='UP13'>(UTC +13:00) Phoenix Islands Time, Tonga</option> |
| 379 | <option value='UP14'>(UTC +14:00) Line Islands</option> |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 380 | </select> |
| 381 | </form> |
| 382 | |
| 383 | |
| 384 | This menu is useful if you run a membership site in which your users are |
| 385 | allowed to set their local timezone value. |
| 386 | |
| 387 | The first parameter lets you set the "selected" state of the menu. For |
| 388 | example, to set Pacific time as the default you will do this |
| 389 | |
| 390 | .. php:method:: timezone_menu($default = 'UTC', $class = "", $name = 'timezones') |
| 391 | |
| 392 | :param string $default: timezone |
| 393 | :param string $class: classname |
| 394 | :param string $name: menu name |
| 395 | :returns: string |
| 396 | |
| 397 | Example: |
| 398 | |
| 399 | :: |
| 400 | |
| 401 | echo timezone_menu('UM8'); |
| 402 | |
| 403 | Please see the timezone reference below to see the values of this menu. |
| 404 | |
| 405 | The second parameter lets you set a CSS class name for the menu. |
| 406 | |
| 407 | .. note:: The text contained in the menu is found in the following |
| 408 | language file: `language/<your_lang>/date_lang.php` |
| 409 | |
| 410 | |
| 411 | Timezone Reference |
| 412 | ================== |
| 413 | |
| 414 | The following table indicates each timezone and its location. |
| 415 | |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 416 | Note some of the location lists have been abridged for clarity and formatting. |
| 417 | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 418 | +------------+----------------------------------------------------------------+ |
| 419 | | Time Zone | Location | |
| 420 | +============+================================================================+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 421 | | UM12 | (UTC - 12:00) Baker/Howland Island | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 422 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 423 | | UM11 | (UTC - 11:00) Samoa Time Zone, Niue | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 424 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 425 | | UM10 | (UTC - 10:00) Hawaii-Aleutian Standard Time, Cook Islands | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 426 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 427 | | UM95 | (UTC - 09:30) Marquesas Islands | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 428 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 429 | | UM9 | (UTC - 09:00) Alaska Standard Time, Gambier Islands | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 430 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 431 | | UM8 | (UTC - 08:00) Pacific Standard Time, Clipperton Island | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 432 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 433 | | UM7 | (UTC - 11:00) Mountain Standard Time | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 434 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 435 | | UM6 | (UTC - 06:00) Central Standard Time | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 436 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 437 | | UM5 | (UTC - 05:00) Eastern Standard Time, Western Caribbean | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 438 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 439 | | UM45 | (UTC - 04:30) Venezuelan Standard Time | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 440 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 441 | | UM4 | (UTC - 04:00) Atlantic Standard Time, Eastern Caribbean | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 442 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 443 | | UM35 | (UTC - 03:30) Newfoundland Standard Time | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 444 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 445 | | UM3 | (UTC - 03:00) Argentina, Brazil, French Guiana, Uruguay | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 446 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 447 | | UM2 | (UTC - 02:00) South Georgia/South Sandwich Islands | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 448 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 449 | | UM1 | (UTC -1:00) Azores, Cape Verde Islands | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 450 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 451 | | UTC | (UTC) Greenwich Mean Time, Western European Time | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 452 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 453 | | UP1 | (UTC +1:00) Central European Time, West Africa Time | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 454 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 455 | | UP2 | (UTC +2:00) Central Africa Time, Eastern European Time | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 456 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 457 | | UP3 | (UTC +3:00) Moscow Time, East Africa Time | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 458 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 459 | | UP35 | (UTC +3:30) Iran Standard Time | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 460 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 461 | | UP4 | (UTC +4:00) Azerbaijan Standard Time, Samara Time | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 462 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 463 | | UP45 | (UTC +4:30) Afghanistan | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 464 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 465 | | UP5 | (UTC +5:00) Pakistan Standard Time, Yekaterinburg Time | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 466 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 467 | | UP55 | (UTC +5:30) Indian Standard Time, Sri Lanka Time | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 468 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 469 | | UP575 | (UTC +5:45) Nepal Time | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 470 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 471 | | UP6 | (UTC +6:00) Bangladesh Standard Time, Bhutan Time, Omsk Time | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 472 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 473 | | UP65 | (UTC +6:30) Cocos Islands, Myanmar | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 474 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 475 | | UP7 | (UTC +7:00) Krasnoyarsk Time, Cambodia, Laos, Thailand, Vietnam| |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 476 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 477 | | UP8 | (UTC +8:00) Australian Western Standard Time, Beijing Time | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 478 | +------------+----------------------------------------------------------------+ |
Kwaan Online | e90b684 | 2012-01-31 10:15:30 +0000 | [diff] [blame] | 479 | | UP875 | (UTC +8:45) Australian Central Western Standard Time | |
| 480 | +------------+----------------------------------------------------------------+ |
| 481 | | UP9 | (UTC +9:00) Japan Standard Time, Korea Standard Time, Yakutsk | |
| 482 | +------------+----------------------------------------------------------------+ |
| 483 | | UP95 | (UTC +9:30) Australian Central Standard Time | |
| 484 | +------------+----------------------------------------------------------------+ |
| 485 | | UP10 | (UTC +10:00) Australian Eastern Standard Time, Vladivostok Time| |
| 486 | +------------+----------------------------------------------------------------+ |
| 487 | | UP105 | (UTC +10:30) Lord Howe Island | |
| 488 | +------------+----------------------------------------------------------------+ |
| 489 | | UP11 | (UTC +11:00) Magadan Time, Solomon Islands, Vanuatu | |
| 490 | +------------+----------------------------------------------------------------+ |
| 491 | | UP115 | (UTC +11:30) Norfolk Island | |
| 492 | +------------+----------------------------------------------------------------+ |
| 493 | | UP12 | (UTC +12:00) Fiji, Gilbert Islands, Kamchatka, New Zealand | |
| 494 | +------------+----------------------------------------------------------------+ |
| 495 | | UP1275 | (UTC +12:45) Chatham Islands Standard Time | |
| 496 | +------------+----------------------------------------------------------------+ |
| 497 | | UP13 | (UTC +13:00) Phoenix Islands Time, Tonga | |
| 498 | +------------+----------------------------------------------------------------+ |
| 499 | | UP14 | (UTC +14:00) Line Islands | |
Derek Jones | 8ede1a2 | 2011-10-05 13:34:52 -0500 | [diff] [blame] | 500 | +------------+----------------------------------------------------------------+ |