<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gomana2</author_name>
  <author_url>https://blog.hatena.ne.jp/gomana2/</author_url>
  <blog_title>ごまなつ Blog</blog_title>
  <blog_url>https://gomana2.hatenablog.jp/</blog_url>
  <categories>
    <anon>技術系</anon>
  </categories>
  <description>UnixTimeから現在時刻に変換して表示をしていたのですが、2点やらかしたので、そのまとめです。 変換には以下を用いました。 private readonly static DateTime UnixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); public static long ToUnixTime(DateTime dateTime) { dateTime = dateTime.ToUniversalTime(); TimeSpan elapsedTime = dateTime - UnixEpoch; ret…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgomana2.hatenablog.jp%2Fentry%2F2020%2F08%2F27%2F160000&quot; title=&quot;【C#】UnixTimeの現在時刻変換でやらかした2点 - ごまなつ 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>2020-08-27 16:00:00</published>
  <title>【C#】UnixTimeの現在時刻変換でやらかした2点</title>
  <type>rich</type>
  <url>https://gomana2.hatenablog.jp/entry/2020/08/27/160000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
