<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hyottokoaloha</author_name>
  <author_url>https://blog.hatena.ne.jp/hyottokoaloha/</author_url>
  <blog_title>DesignAssembler</blog_title>
  <blog_url>https://hyottokoaloha.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>時間を表すクラスにはDateとTimeとDateTimeクラスがあって、Dateクラスは日付、Timeクラスは時間、DateTimeクラスは日付と時間をそれぞれ扱います。 時間を表示する 最初1つずつフォーマットごとに切り出して連結していたのですが、strftimeという便利なメソッドがありました。 date_time = Time.now =&gt; 2016-05-02 06:58:51 +0900 date_time.year.to_s + &quot;/&quot; + date_time.month.to_s + '/' + date_time.day.to_s + '/' + &quot; &quot; + date_time…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhyottokoaloha.hatenablog.com%2Fentry%2F2016%2F05%2F02%2F070217&quot; title=&quot;Rubyの時間の扱い - DesignAssembler&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>2016-05-02 07:02:17</published>
  <title>Rubyの時間の扱い</title>
  <type>rich</type>
  <url>https://hyottokoaloha.hatenablog.com/entry/2016/05/02/070217</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
