class TZInfo::Timestamp
def new!(value, sub_second = 0, utc_offset = nil)
Experimental RBS support (using type sampling data from the type_fusion
project).
def new!: (Integer value, ?(Rational | Integer) sub_second, ?(Integer | Symbol | nil) utc_offset) -> TZInfo::Timestamp
This signature was generated using 82 samples from 5 applications.
-
(Timestamp)
- a new instance of `self`.
Parameters:
-
utc_offset
(Object
) -- either `nil` for a {Timestamp} without a -
sub_second
(Numeric
) -- the fractional part of the second as either -
value
(Integer
) -- the number of seconds since 1970-01-01 00:00:00
def new!(value, sub_second = 0, utc_offset = nil) result = allocate result.send(:initialize!, value, sub_second, utc_offset) result end