core / io.islandtime.ranges / DateTimeInterval / <init>

<init>

(iosArm64, iosX64, jvm, macosX64) <init>(start: DateTime = UNBOUNDED.start, endExclusive: DateTime = UNBOUNDED.endExclusive)

An interval between two arbitrary date-times.

As no UTC offset or time zone is associated with either date-time, it's up to the application to interpret the meaning.

DateTime.MIN and DateTime.MAX are used as sentinels to indicate an unbounded (ie. infinite) start or end.