ftnk.jp -> ~fumi -> ChangeLog -> 翌月の指定日を求める
Prev / Next / ~fumi/ChangeLog

2005-11-08 / 翌月の指定日を求める [Ruby]

来月の 25 日を求めるには

d = Date.today >> 1
raigetsu_25niti = Date.new(d.year, d.month, 25)
とする.

Date::>> で 1 ヵ月加算.

ruby-list:41340 からのスレッド参照

Blog Widget by LinkWithin
blog comments powered by Disqus