{"description":"toRuby\u3067\u3057\u305f\u3002\u4eca\u65e5\u306f\u5145\u5b9f\u3057\u3066\u305f\u306a\u3042\u3002\u4f8b\u984c\u3092\u3084\u308b\u306e\u306f\u3044\u3044\u306d\u3002 Time\u3068Date, DateTime\u306e\u7ae0\u3067\u3001\u4f8b\u984c\u306f\u30ab\u30ec\u30f3\u30c0\u30fc\u3002\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3042\u3068\u3067\u304b\u304f\u3002\u52c9\u5f37\u4f1a\u4e2d\u306b\u8a71\u984c\u306b\u306a\u3063\u305f\u300cDate\u30af\u30e9\u30b9\u306e\u8056\u5730\u300d\u306f\u4ee5\u4e0b\u306b\u3042\u308a\u307e\u3059\u3002 Date\u30af\u30e9\u30b9\u306e\u8056\u5730 (\u8ffd\u8a18) \u4f8b\u984c\u306e\u30ab\u30ec\u30f3\u30c0\u30fc\u306f\u3001\u65e5\u304c\u9032\u3080\u306e\u3067\u306f\u306a\u304f\u3001\u9031\u304c\u9032\u3080\u3088\u3046\u306b\u898b\u3048\u305f\u306e\u3067\u3001\u305d\u3046\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002 require 'date' def cal(y, m) head = Date.new(y, m, 1) d = head - head.wday begin 7.times do print d.month == m ? \"%3d\" % d.day : \"\u2026","provider_url":"https://hatena.blog","published":"2008-08-07 02:43:18","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdruby.hatenablog.com%2Fentry%2F20080807%2F1218044598\" title=\"toRuby - @m_seki \u306e\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","author_name":"m_seki","blog_url":"https://druby.hatenablog.com/","image_url":null,"version":"1.0","blog_title":"@m_seki \u306e","width":"100%","title":"toRuby","height":"190","type":"rich","url":"https://druby.hatenablog.com/entry/20080807/1218044598","categories":[],"author_url":"https://blog.hatena.ne.jp/m_seki/"}