ruby on rails - Result of time subtraction? -


How do I get the result of subtraction in words like "7 seconds"? StuffTime is not working because the result is fiction.

  a = time.nough: b = time.new # a few seconds later b - a # 7.17584 (seconds)    

< div class = "post-text" itemprop = "text">

If you are using rail, you can use it:

  from_time = time.one distance_of_time_in_words (Se_time, se_time + 15 seconds, included_scond: true) less than # 20 seconds    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -