Last active
October 16, 2018 00:56
-
-
Save shoyan/46057f218aefa82d3e215ee030b0a16b to your computer and use it in GitHub Desktop.
今から8時間45分後を計算する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 時刻を加算するにはRationalを足す。 | |
# 1分後はRational(1, 24*60) | |
# 8時間45分は525分なのでRational(525, 24*60)を加算すればよい | |
DateTime.now + Rational(525,24*60) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment