<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xoyip</author_name>
  <author_url>https://blog.hatena.ne.jp/xoyip/</author_url>
  <blog_title>ぴよログ</blog_title>
  <blog_url>https://xoyip.hatenablog.com/</blog_url>
  <categories>
    <anon>Xcode</anon>
    <anon>CocoaPods</anon>
    <anon>Objective-C</anon>
    <anon>iOS</anon>
  </categories>
  <description>1 week agoみたいな日付の相対表記をiOSでやりたいので探しました。そしたらCocoaPods対応のライブラリがありました。 kevinlawler/NSDate-TimeAgo これです。カテゴリでNSDateを拡張してくれてあります。 インストール 普通のCocoaPods。 # in Podfile pod 'NSDate+TimeAgo' $ pod install 使う #import &lt;NSDate+TimeAgo.h&gt; - (NSString*)relative:(NSDate*)date { return [date timeAgo]; // ex. 2 days ag…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxoyip.hatenablog.com%2Fentry%2F2014%2F02%2F07%2F192803&quot; title=&quot;iOSで日時の相対表記 - ぴよログ&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>https://www.evernote.com/shard/s15/sh/743c3447-691f-49db-a959-f0653c078c78/c59206f5046796a2c5d06f92a43e89c7/deep/0/imgres.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-02-07 19:28:03</published>
  <title>iOSで日時の相対表記</title>
  <type>rich</type>
  <url>https://xoyip.hatenablog.com/entry/2014/02/07/192803</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
