class UIng::TM

Defined in:

uing/tm.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(cstruct : LibUI::TM = LibUI::TM.new) #

[View source]
def self.new(time : Time) #

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


[View source]

Macro Detail

macro method_missing(call) #

[View source]

Instance Method Detail

def finalize #

[View source]
def to_s(io : IO, format : String) : Nil #

Delegate to_s to Time for convenient formatting


[View source]
def to_s(format : String) : String #

[View source]
def to_s(io : IO) : Nil #
Description copied from class Reference

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>

[View source]
def to_time : 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.


[View source]
def to_time? : Time | Nil #

[View source]
def to_unsafe #

[View source]
def zone : String | Nil #

[View source]
def zone=(value : String) #

[View source]