# File lib/api/Flexiscale APIAddons.rb, line 25 def to_utc_time dest = new_offset # Convert a fraction of a day to a number of microseconds usec = (dest.sec_fraction * 60 * 60 * 24 * (10**6)).to_i Time.send(:utc, dest.year, dest.month, dest.day, dest.hour, dest.min, dest.sec, usec) end