ruby on rails - Result of time subtraction? -
How do I get the result of subtraction in words like "7 seconds"? < div class = "post-text" itemprop = "text"> If you are using rail, you can use it: StuffTime is not working because the result is fiction.
a = time.nough: b = time.new # a few seconds later b - a # 7.17584 (seconds)
from_time = time.one distance_of_time_in_words (Se_time, se_time + 15 seconds, included_scond: true) less than # 20 seconds
Comments
Post a Comment