2007-01-23から1日間の記事一覧

日本語で曜日入り日付フォーマット

t = Time.now puts t.strftime("%Y年%m月%d日(#{%w(日 月 火 水 木 金 土)[t.wday]}) %H時%M分%S秒") # 2007年01月23日(火) 17時09分43秒