Table of Contents

DateSpan Constructor

Definition

Namespace
Cuemon
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/DateSpan.cs

DateSpan(DateTime)

Initializes a new instance of the DateSpan structure with a default DateTime value set to Today.

public DateSpan(DateTime start)

Parameters

start DateTime

A DateTime value for the DateSpan calculation.

DateSpan(DateTime, DateTime)

Initializes a new instance of the DateSpan structure with a default Calendar value from the InvariantCulture class.

public DateSpan(DateTime start, DateTime end)

Parameters

start DateTime

A DateTime value for the DateSpan calculation.

end DateTime

A DateTime value for the DateSpan calculation.

DateSpan(DateTime, DateTime, Calendar)

Initializes a new instance of the DateSpan structure.

public DateSpan(DateTime start, DateTime end, Calendar calendar)

Parameters

start DateTime

A DateTime value for the DateSpan calculation.

end DateTime

A DateTime value for the DateSpan calculation.

calendar Calendar

The Calendar that applies to this DateSpan.