RubyのTime#strftimeのディレクティブは対称性があるように見えて、そうでもない例外があって覚えづらい。 %a - The abbreviated weekday name (``Sun'') %A - The full weekday name (``Sunday'') %b - The abbreviated month name (``Jan'') %B - The full month name (``January'') %c - The preferred local date and time representation %C - Century (20 in 2009) %d - Day of the month (01..31) %D - Date (%m/%d/%y) %e - Day of the month, blank-padded ( 1..31)
![RubyのTime#strftimeを覚える(これっきりにしたい) - yarbの日記](https://cdn-ak-scissors.b.st-hatena.com/image/square/d91dfcf6c4d8037538c1c23d94f3bb02b8a9ecda/height=288;version=1;width=512/https%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fy%2Fyarb%2F20110227%2F20110227172524.jpg)