{"url":"https://blog.kyanny.me/entry/2022/12/26/122915","description":"\u4efb\u610f\u306e\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u306e UTC \u30aa\u30d5\u30bb\u30c3\u30c8\u3092\u6301\u3064 Time \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u5f97\u3089\u308c\u308b\u3002ActiveSupport \u306a\u3057\u3067\u3082\u3067\u304d\u308b\u306e\u3092\u521d\u3081\u3066\u77e5\u3063\u305f\u3002 irb(main):001:0> t = Time.utc(2023, 1, 1, 0, 0, 0) => 2023-01-01 00:00:00 UTC irb(main):002:0> t.getlocal(\"+09:00\") => 2023-01-01 09:00:00 +0900 irb(main):003:0> t.getlocal(\"-05:00\") => 2022-12-31 19:00:00 -0500 docs.ruby-lang.o\u2026","image_url":null,"categories":[],"provider_url":"https://hatena.blog","blog_title":"@kyanny's blog","version":"1.0","author_url":"https://blog.hatena.ne.jp/a666666/","height":"190","blog_url":"https://blog.kyanny.me/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.kyanny.me%2Fentry%2F2022%2F12%2F26%2F122915\" title=\"Ruby: Time#getlocal(utc_offset) \u3067\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u3092\u5909\u63db\u3059\u308b - @kyanny&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","title":"Ruby: Time#getlocal(utc_offset) \u3067\u30bf\u30a4\u30e0\u30be\u30fc\u30f3\u3092\u5909\u63db\u3059\u308b","author_name":"a666666","published":"2022-12-26 12:29:15","provider_name":"Hatena Blog","type":"rich"}