<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ch3cooh393</author_name>
  <author_url>https://blog.hatena.ne.jp/ch3cooh393/</author_url>
  <blog_title>酢ろぐ！</blog_title>
  <blog_url>https://blog.ch3cooh.jp/</blog_url>
  <categories>
    <anon>開発-C#</anon>
  </categories>
  <description>iOSアプリの移植をするにあたり、UNIX時刻*1を取得する必要が出てきました。具体的に言うと、iOSではtimeIntervalSince1970メソッドを使えば、NSDateオブジェクトで保持している時刻からUNIX時刻を求めることができます。 // 期限切れとなる時間をUNIX時刻で取得する NSDate* expireDate = [self getExpireDate]; NSTimeInterval expireTime = [expireDate timeIntervalSince1970]; 上記と同等の処理をC#に移植したいと考えています。どうもC#にはUNIX時刻を一発で取…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.ch3cooh.jp%2Fentry%2F20130225%2F1361776951&quot; title=&quot;C#でDateTimaからUNIX時刻へ変換する - 酢ろぐ！&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>2013-02-25 16:22:31</published>
  <title>C#でDateTimaからUNIX時刻へ変換する</title>
  <type>rich</type>
  <url>https://blog.ch3cooh.jp/entry/20130225/1361776951</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
