module Airbrake::TimeTruncate
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/airbrake-ruby/time_truncate.rbs module Airbrake::TimeTruncate def self.utc_truncate_minutes: (Float time) -> untyped end
def self.utc_truncate_minutes(time)
Experimental RBS support (using type sampling data from the type_fusion
project).
def self.utc_truncate_minutes: (Float time) -> untyped
This signature was generated using 4 samples from 1 application.
-
(String)
-
Parameters:
-
time
(Time, Integer, Float
) --
def self.utc_truncate_minutes(time) tm = Time.at(time).getutc Time.utc(tm.year, tm.month, tm.day, tm.hour, tm.min).to_datetime.rfc3339 end