{"provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftricknotes.hateblo.jp%2Fentry%2F20100505%2Fp1\" title=\"DateTime\u30af\u30e9\u30b9\u306b\u30ed\u30fc\u30ab\u30eb\u306e\u6642\u5dee\u3092\u6301\u305f\u305b\u308b - tricknotes\u306e\u307c\u3046\u3051\u3093\u306e\u3057\u3087\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/tricknotes/","height":"190","version":"1.0","title":"DateTime\u30af\u30e9\u30b9\u306b\u30ed\u30fc\u30ab\u30eb\u306e\u6642\u5dee\u3092\u6301\u305f\u305b\u308b","image_url":null,"type":"rich","url":"https://tricknotes.hateblo.jp/entry/20100505/p1","description":"\u6628\u65e5\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u306e\u7d9a\u7de8\u3068\u3044\u3046\u3053\u3068\u3067\u3002ActiveSupport\u306b\u3088\u308b\u62e1\u5f35\u3067\u3001DateTime\u30af\u30e9\u30b9\u304c\u30ed\u30fc\u30ab\u30eb\u306e\u6642\u5dee\u3092\u6301\u3064\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002 require \"rubygems\" require \"active_support\" DateTime.local_offset # => Rational(3, 8) \u3061\u306a\u307f\u306b\u5b9f\u614b\u306f\u3053\u3061\u3089\u3002(\u4e00\u90e8\u629c\u7c8b) DateTime\u306e\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u3068\u3057\u3066mix-in\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002 # active_support/core_ext/date_time/calculations.rb def local_offset ::Time.local(2007).utc_o\u2026","categories":["ruby"],"author_name":"tricknotes","blog_title":"tricknotes\u306e\u307c\u3046\u3051\u3093\u306e\u3057\u3087","published":"2010-05-05 00:00:00","width":"100%","blog_url":"https://tricknotes.hateblo.jp/"}