class TZInfo::TimestampWithOffset

def to_time

Experimental RBS support (using type sampling data from the type_fusion project).

def to_time: () -> TZInfo::TimeWithOffset

This signature was generated using 1 sample from 1 application.

Returns:
  • (Time) - if there is an associated {TimezoneOffset}, a
def to_time
  to = timezone_offset
  if to
    new_time(TimeWithOffset).set_timezone_offset(to)
  else
    super
  end
end