<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shinkufencer</author_name>
  <author_url>https://blog.hatena.ne.jp/shinkufencer/</author_url>
  <blog_title>コード日進月歩</blog_title>
  <blog_url>https://shinkufencer.hateblo.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>ゼロ埋め、いわゆるゼロパディングに関してこういう書きかたがあるとはあんまり知らなかったのでメモ 環境 $ ruby -v ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin17] 使い方 以下のように時間を設定する t = Time.new(2001,2,3,4,5,6,&quot;+09:00&quot;) フォーマッタに - を付け加えると0でなくなる t.strftime(&quot;Printed on %m/%d/%Y&quot;) # =&gt; &quot;Printed on 02/03/2001&quot; t.strftime(&quot;Printed on %m…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinkufencer.hateblo.jp%2Fentry%2F2020%2F08%2F10%2F220414&quot; title=&quot;Rubyのsrtftimeにて月や日をゼロパディングしたくない場合はマイナスを使う - コード日進月歩&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-10 22:04:14</published>
  <title>Rubyのsrtftimeにて月や日をゼロパディングしたくない場合はマイナスを使う</title>
  <type>rich</type>
  <url>https://shinkufencer.hateblo.jp/entry/2020/08/10/220414</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
