DuckDB::TimeOfDay
Represents the TIME data type of SQL within DuckDB.
Constructors
new(time : Time)
NOTE: It raises ArgumentError if time is not in UTC.
NOTE: Beware the loss of precision in the fractional part (nanoseconds to microseconds)
new(span : Time::Span)
NOTE: It raises ArgumentError unless span is less than one day.
NOTE: Beware of loss of precision for the fractional part (nanoseconds to microseconds).
Instance methods
hour
Sourcemicrosecond
Sourcemillisecond
Sourceminute
Sourcesecond
Sourcesubmillisecond?
Sourcesubsecond?
Sourceto_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.
to_span
Source