ざっくりと差分を見たい時。 > require 'date' > > from = Date.parse("2015/01") > to = Date.parse("2019/02") > > ((to-from).to_i / 365).to_s + "年と" + ((to-from).to_i % 365).to_s + "日"
Quote saved.
Login to quote this blog
Failed to save quote. Please try again later.
You cannot quote because this article is private.