class ActiveSupport::TimeWithZone
def incorporate_utc_offset(time, offset)
Experimental RBS support (using type sampling data from the type_fusion
project).
def incorporate_utc_offset: (Time time, Integer offset) -> Time
This signature was generated using 4 samples from 1 application.
def incorporate_utc_offset(time, offset) if time.kind_of?(Date) time + Rational(offset, SECONDS_PER_DAY) else time + offset end end