struct

XLSX::DateValue

Inherits Struct < Value < Object

A date/time cell value pairing a Time with a style index into the workbook's cellXfs table.

The style_index controls how Excel displays the value (date-only, time-only, or date+time). Treat it as opaque — use the factory methods for new values, and values read from a file carry the original style.

Wall-clock UTC semantics apply: timezone offset is discarded on write, and values are reconstructed as UTC on read.

Constructors

date_only(time : Time) : self

Creates a date-only cell using the default date display format.

Source
date_time(time : Time) : self

Creates a date+time cell using the default date+time display format.

Source
time_only(time : Time) : self

Creates a time-only cell using the default time display format.

Source

Instance methods

==(other : DateValue) : Bool
Source
style_index
Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source
value
Source