Skip to content

Instantly share code, notes, and snippets.

@florianziegler
Created September 3, 2014 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save florianziegler/d735751627107d9a1926 to your computer and use it in GitHub Desktop.
Save florianziegler/d735751627107d9a1926 to your computer and use it in GitHub Desktop.
Array of UTC-based timezones, key => time zone, value => time offset in seconds
{
'UTC-12' => '-43200',
'UTC-11' => '-39600',
'UTC-10' => '-36000',
'UTC-9.5' => '-34200',
'UTC-9' => '-32400',
'UTC-8' => '-28800',
'UTC-7' => '-25200',
'UTC-6' => '-21600',
'UTC-5' => '-18000',
'UTC-4.5' => '-16200',
'UTC-4' => '-14400',
'UTC-3.5' => '-12600',
'UTC-3' => '-10800',
'UTC-2' => '-7200',
'UTC-1' => '-3600',
'UTC+0' => '0',
'UTC+1' => '3600',
'UTC+2' => '7200',
'UTC+3' => '10800',
'UTC+3.5' => '12600',
'UTC+4' => '14400',
'UTC+4.5' => '16200',
'UTC+5' => '18000',
'UTC+5.5' => '19800',
'UTC+5.75' => '20700',
'UTC+6' => '21600',
'UTC+6.5' => '23400',
'UTC+7' => '25200',
'UTC+8' => '28800',
'UTC+8.75' => '31500',
'UTC+9' => '32400',
'UTC+9.5' => '34200',
'UTC+10' => '36000',
'UTC+10.5' => '37800',
'UTC+11' => '39600',
'UTC+11.5' => '41400',
'UTC+12' => '43200',
'UTC+12.75' => '45900',
'UTC+13' => '46800',
'UTC+14' => '50400'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment