python from datetime import datetime, timedelta today = datetime.today() today + timedelta(minutes=1) # => 1分後 today + timedelta(hours=1) # => 1時間後 today + timedelta(days=1) # => 1日後 ruby require 'date' today = DateTime.now() today + Rational(1, 24 * 60 * 60) # => 1分後 today + Rational(1, 24) # => 1時間後 today + 1 # => 1日後 ActiveSupportを使ったほうが楽ですね require 'date' require 'active_support/core_ext' toda