type
Span
Span models a range of time using an inclusive starting timestamp and exclusive ending timestamp.
constructors
fromStr |
Decode from string format |
---|---|
makeAbs |
Make an absolute span for two date times which must be defined in the |
makeDate |
Make an absolute span for the given date |
makeRel |
Make a relative span for given mode using current time and current locale for starting weekday |
fields
methods
dis |
Display string for current locale |
---|---|
equals |
Equality is based on mode only for relative, start/end for abs |
hash |
Hash code is based on mode only for relative, start/end for abs |
toCode |
Return axon representation for this span. |
toDateSpan |
Convert this span to a DateSpan attempting to use aligned dates |
toStr |
Encode to string, see |
toTimeZone |
Convert to timezone using |
today |
Convenience for |
tz |
Timezone for this span |
Slot Details
dis
Str dis()
Display string for current locale
end
const DateTime end
Exclusive ending timestamp
equals
fromStr
hash
virtual override Int hash()
Hash code is based on mode only for relative, start/end for abs
makeAbs
makeDate
makeRel
mode
const SpanMode mode
Absolute or relative mode
start
const DateTime start
Inclusive starting timestamp
toCode
Str toCode()
Return axon representation for this span.
toDateSpan
DateSpan toDateSpan()
Convert this span to a DateSpan attempting to use aligned dates
toStr
toTimeZone
Convert to timezone using DateTime.toTimeZone
on both start, end
today
tz
TimeZone tz()
Timezone for this span