- Index
- »
- axon
- »
- func:toSpan
def
func:toSpan
toSpan(x, tz: null)
Convert the following objects into a Span
:
Span
: return itselfSpan+tz
: update timezone using same dates only if aligned to midnightStr
: returnSpan.fromStr
using current timezoneStr+tz
: returnSpan.fromStr
using given timezoneDateTime..DateTime
: range of two DateTimesDate..DateTime
: start day for date until the end timestampDateTime..Date
: start timestamp to end of day for end dateDateTime
: span of a single timestampDateSpan
: anything accepted bytoDateSpan()
in current timezoneDateSpan+tz
: anything accepted bytoDateSpan()
using given timezone