<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> <cite xml:lang="en">ActiveSupport::TimeZone</cite>
( (<time>2016-03-08 07:49:58 +09:00</time>))
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://api.rubyonrails.org/classes/ActiveSupport/TimeZone.html">http://api.rubyonrails.org/classes/ActiveSupport/TimeZone.html</anchor-external></p><figure class="quote"><figcaption><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> <cite>'timezone' tag wiki - Stack Overflow</cite>
( (<time>2016-06-15 18:42:34 +09:00</time>))
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://stackoverflow.com/tags/timezone/info">http://stackoverflow.com/tags/timezone/info</anchor-external></p></figcaption><blockquote><p>These identifiers are defined by Rails in the ActiveSupport::TimeZone class. They are based on standard IANA/Olson time zones. Rails describes them as &quot;a meaningful subset of 146 zones&quot;, however it does not describe by what criteria it determines a zone to be &quot;meaningful&quot;.</p></blockquote></figure><figure class="quote"><figcaption><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end> <cite>ツイッター:設定画面,タイムライン中のタイムゾーン及び正式なタイムゾーン識別子の対応表 - Qiita</cite>
( (<time>2016-06-17 12:58:04 +09:00</time>))
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://qiita.com/tachart2016_ja/items/f90a31d245416f4df407">http://qiita.com/tachart2016_ja/items/f90a31d245416f4df407</anchor-external></p></figcaption><blockquote><p>この Web サービスではツイートの作成日時も分析対象として扱うため、UserTimeline API で取得した世界標準時の作成日時(created_at)を地方時に変換しています。UserTimeline API が返す JSON を見たことがある方なら、user/utc_offset を足せばいいだけと思われるかもしれません。しかし user/utc_offset にはツイート「取得時」の時差が設定されています。これは夏時間のない地域なら問題ないのですが、夏時間のある地域だと単純に足すことができません。</p><p>そこで user/utc_offset の使用は諦めて、まさにこういうときのためのタイムゾーン user/time_zone を使ってみようと思いましたが、これは &quot;London&quot; などツイッターの設定画面に表示されるユーザー向けの表示が基準となっていて正式なタイムゾーン識別子ではないためこれをそのまま使うこともできませんでした。</p></blockquote></figure></body></html>