Table of Contents

Parse Method

Definition

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

Parse(string)

Constructs a new DateSpan object from a date and time interval specified in a string.

public static DateSpan Parse(string start)

Parameters

start string

A string that specifies the starting date and time value for the DateSpan interval.

Returns

DateSpan

A DateSpan that corresponds to start and Today for the last part of the interval.

Parse(string, string)

Constructs a new DateSpan object from a date and time interval specified in a string.

public static DateSpan Parse(string start, string end)

Parameters

start string

A string that specifies the starting date and time value for the DateSpan interval.

end string

A string that specifies the ending date and time value for the DateSpan interval.

Returns

DateSpan

A DateSpan that corresponds to start and end of the interval.

Parse(string, string, CultureInfo)

Constructs a new DateSpan object from a date and time interval specified in a string.

public static DateSpan Parse(string start, string end, CultureInfo culture)

Parameters

start string

A string that specifies the starting date and time value for the DateSpan interval.

end string

A string that specifies the ending date and time value for the DateSpan interval.

culture CultureInfo

A CultureInfo to resolve a Calendar object from.

Returns

DateSpan

A DateSpan that corresponds to start and end of the interval.