Share via


DateTimeInterval Class

Definition

An interval in time specifying the date and time for the inclusive start and exclusive end, i.e. [start, end).

public class DateTimeInterval
type DateTimeInterval = class
Public Class DateTimeInterval
Inheritance
DateTimeInterval

Constructors

DateTimeInterval(DateTimeOffset, DateTimeOffset)

Initializes a new instance of DateTimeInterval.

Properties

EndOn

A datetime indicating the exclusive/open end of the time interval, i.e. [start, end). Specifying an end that occurs chronologically before start will result in an error.

StartOn

A datetime indicating the inclusive/closed start of the time interval, i.e. [start, end). Specifying a start that occurs chronologically after end will result in an error.

Applies to