<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shobonengine</author_name>
  <author_url>https://blog.hatena.ne.jp/shobonengine/</author_url>
  <blog_title>ShobonEngineの日記</blog_title>
  <blog_url>https://shobonengine.hatenadiary.org/</blog_url>
  <categories>
    <anon>Google App Engine</anon>
    <anon>Python</anon>
  </categories>
  <description>import locale locale.setlocale(locale.LC_ALL, 'ja_JP') このように Google App Engine で locale の設定を試みると、 locale.Error('locale emulation only supports &quot;C&quot; locale') の例外を目にします。Google App Engine では locale による日本時間の取得は難しいと心得るべきでしょう。 しかし、通常の datetime.datetime.now() で得られるのは UTC 時間なので、以下のように 9 時間分シフトするだけで日本時間に変更するこ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshobonengine.hatenadiary.org%2Fentry%2F20110226%2F1298720908&quot; title=&quot;locale に依存しないプログラムにする - ShobonEngineの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-02-26 20:48:28</published>
  <title>locale に依存しないプログラムにする</title>
  <type>rich</type>
  <url>https://shobonengine.hatenadiary.org/entry/20110226/1298720908</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
