class Timezonify::TimeHelper

Public Class Methods

time_in_hours(time) click to toggle source
# File lib/timezonify.rb, line 91
def self.time_in_hours(time)
  (time.strftime("%H").to_f + (((time.strftime("%M")).to_f)/60).round(1))
end