SkySpark by SkyFoundry

const class proj::DateTimeSpan

sys::Obj
  proj::DateTimeSpan

@Js

DateTimeSpan represents a range between two absolute timestamps.

end

const DateTime? end

Ending timestamp

make

new make(DateTime? s, DateTime? e)

Construct with start/end timestamps.

makeDateSpan

new makeDateSpan(DateSpan d, TimeZone tz)

Construct with Date range

start

const DateTime? start

Starting timestamp

toDateSpan

DateSpan toDateSpan()

Convert to DateSpan

toStr

virtual override Str toStr()

To debug string.

toTimeZone

DateTimeSpan toTimeZone(TimeZone tz)

Convert start/end to given timezone

tz

TimeZone? tz()

Timezone of start/end timestamps