UIng::TM
Inherits Reference < Object
Constructors
new(time : Time)
Copies the calendar and clock fields from time. This does not convert the value to the process-local time zone.
new
SourceInstance methods
capture_native_zone
Copy a zone written by native code before its pointer can become stale. Windows' struct tm has no zone field.
to_s(format : String) : String
Sourceto_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>
to_time
Converts the calendar and clock fields to a value in
Time::Location.local. Stored offset and zone fields are not used.
Invalid date/time fields raise ArgumentError.
to_time?
Sourceto_unsafe
Sourcezone
Sourcezone=(value : String)
SourceMacros
method_missing(call)
Source