Ruby 2.7 adds Time ceil and Time floor methods
29-Aug-2019 1512
There are cases where we want to truncate decimals in order to compare or save times with different accuracy. Ruby adds Time.
Ruby 2.7 adds Time ceil and Time floor methods #ruby #rubydeveloper #rubyonrails #floor #methods https://rubyonrails.ba/link/ruby-2-7-adds-time-ceil-and-time-floor-methods