<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kazutomo</author_name>
  <author_url>https://blog.hatena.ne.jp/kazutomo/</author_url>
  <blog_title>GS2 Blog</blog_title>
  <blog_url>https://gs2.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>はじめに イベントの開始時刻や終了時刻など運営型ゲームでは時間の取り扱いは重要です。 機能追加の背景 一方で、ゲームが動作するデバイスの時刻設定は必ずしも正確とは言えず、正しくUIを表現するのは難しいです。 サーバーから取得した時刻を使用して、現在時間を補正することが一般的に行われており、それによってより正確なUIを表現することができるようになります。GS2 では元々 GS2-Realtime::Now というAPIで現在時刻を取得できました。 しかし、それはその瞬間の時刻の取得であり、刻々と変化する時刻やスリープ復帰後にも問題なく動作するような仕組みはゲーム開発者が構築する必要がありました。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgs2.hatenablog.com%2Fentry%2F2023%2F12%2F05%2F234919&quot; title=&quot;サーバーから取得した時刻を基準とした現在時刻取得機能が追加されました - GS2 Blog&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>2023-12-05 23:49:19</published>
  <title>サーバーから取得した時刻を基準とした現在時刻取得機能が追加されました</title>
  <type>rich</type>
  <url>https://gs2.hatenablog.com/entry/2023/12/05/234919</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
