struct

Tracing::FmtTime::DateTime

Inherits Struct < Value < Object

Constructors

from_unix(secs : Int64, nanos : UInt32) : DateTime
Source
new(year : Int64, month : UInt8, day : UInt8, hour : UInt8, minute : UInt8, second : UInt8, micros : UInt32)
Source

Instance methods

hour
Source
micros
Source
minute
Source
month
Source
second
Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
year
Source