UIng::TM
Inherits Reference < Object
Constructors
new(cstruct : LibUI::TM = LibUI::TM.new)
Sourcenew(time : Time)
Copies the calendar and clock fields from time. This does not convert the value to the process-local time zone.
Instance methods
finalize
Sourceto_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