module DateAndTime module Calculations end module Zones end module Compatibility end end module ActiveSupport class TimeZone end class Duration end end class Time include DateAndTime::Calculations def in_time_zone: (?(ActiveSupport::TimeZone | String) new_zone) -> ::ActiveSupport::TimeWithZone | (false? zone) -> ::Time def +: (ActiveSupport::Duration other) -> self | ... def -: (ActiveSupport::Duration other) -> self | ... alias at_beginning_of_day beginning_of_day alias at_beginning_of_hour beginning_of_hour alias at_beginning_of_minute beginning_of_minute alias at_end_of_day end_of_day alias at_end_of_hour end_of_hour alias at_end_of_minute end_of_minute alias at_midday middle_of_day alias at_middle_of_day middle_of_day alias at_midnight beginning_of_day alias at_noon middle_of_day def beginning_of_day: () -> self def beginning_of_hour: () -> self def beginning_of_minute: () -> self def compare_with_coercion: (untyped other) -> (-1 | 0 | 1 | nil) def compare_without_coercion: (untyped other) -> (-1 | 0 | 1 | nil) def end_of_day: () -> self def end_of_hour: () -> self def end_of_minute: () -> self def eql_with_coercion: (untyped other) -> bool def eql_without_coercion: (untyped other) -> bool alias midday middle_of_day def middle_of_day: () -> self alias midnight beginning_of_day def minus_with_coercion: (Time | self arg0) -> Float | (Numeric arg0) -> self def minus_with_duration: (Time | self arg0) -> Float | (Numeric arg0) -> self def minus_without_coercion: (Time | self arg0) -> Float | (Numeric arg0) -> self def minus_without_duration: (Time | self arg0) -> Float | (Numeric arg0) -> self def next_day: () -> self def next_month: () -> self def next_year: () -> self alias noon middle_of_day def plus_without_duration: (Time | self arg0) -> Float | (Numeric arg0) -> self def prev_day: () -> self def prev_month: () -> self def prev_year: () -> self def seconds_since_midnight: () -> Float def seconds_until_end_of_day: () -> Integer def sec_fraction: () -> (Integer | Rational) def to_default_s: () -> String end