Skip to main content

DateTimeRange Constructors

A structure that specifies a time interval with the [start, end). mathematical formula.
Name Parameters Description
DateTimeRange(DateTimeRange) source Initializes a new instance of the DateTimeRange class with specified settings.
DateTimeRange(DateTime, DateTime) start, end Initializes a new instance of the DateTimeRange class with specified settings.
DateTimeRange(DateTime, TimeSpan) start, duration Initializes a new instance of the DateTimeRange class with specified settings.
See Also