class

UIng::TM

Inherits Reference < Object

Constructors

new(cstruct : LibUI::TM = LibUI::TM.new)
Source
new(time : Time)

Copies the calendar and clock fields from time. This does not convert the value to the process-local time zone.

Source

Instance methods

finalize
Source
to_s(io : IO, format : String) : Nil

Delegate to_s to Time for convenient formatting

Source
to_s(format : String) : String
Source
to_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>
Source
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.

Source
to_time?
Source
to_unsafe
Source
zone
Source
zone=(value : String)
Source

Macros

method_missing(call)
Source