class

SpanMode

@Js
@Serializable { simple=true }
const class SpanMode : Enum

SpanMode enumerates relative or absolute span modes

constructors fromStr

Return the SpanMode instance for the specified name

fields thisYear

pastYear

vals

List of SpanMode values indexed by ordinal

thisWeek

lastMonth

lastWeek

pastQuarter

pastWeek

yesterday

abs

thisQuarter

lastYear

lastQuarter

today

thisMonth

pastMonth

methods isRel

Is this a relative mode

isAbs

Is this an absolute mode

dis

Display name for relative period

abs const static SpanMode : abs

dis Str dis()

Display name for relative period

fromStr static new fromStr(Str name, Bool checked)

Return the SpanMode instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.

isAbs Bool isAbs()

Is this an absolute mode

isRel Bool isRel()

Is this a relative mode

lastMonth const static SpanMode : lastMonth

lastQuarter const static SpanMode : lastQuarter

lastWeek const static SpanMode : lastWeek

lastYear const static SpanMode : lastYear

pastMonth const static SpanMode : pastMonth

pastQuarter const static SpanMode : pastQuarter

pastWeek const static SpanMode : pastWeek

pastYear const static SpanMode : pastYear

thisMonth const static SpanMode : thisMonth

thisQuarter const static SpanMode : thisQuarter

thisWeek const static SpanMode : thisWeek

thisYear const static SpanMode : thisYear

today const static SpanMode : today

vals const static SpanMode[] : vals

List of SpanMode values indexed by ordinal

yesterday const static SpanMode : yesterday

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST