C# Class Sage.SData.Client.Framework.W3CDateTime

Mostra file Open project: Saleslogix/SDataCSharpClientLib Class Usage Examples

Public Methods

Method Description
IsNull ( W3CDateTime dateTime ) : bool

Returns a value indicating whether the specified date represents a null date.

Parse ( string s ) : W3CDateTime

Converts the specified string representation of a W3C date and time to its W3CDateTime equivalent.

ToDateString ( ) : string

Converts the value of this instance to its equivalent string representation.

ToString ( ) : string

Converts the value of this instance to its equivalent string representation.

W3CDateTime ( System.DateTime dateTime ) : System

Initializes a new instance of the W3CDateTime class.

W3CDateTime ( System.DateTime dateTime, System.TimeSpan offset ) : System

Initializes a new instance of the W3CDateTime class.

Private Methods

Method Description
FormatOffset ( System.TimeSpan offset, string separator ) : string

Converts the value of the specified TimeSpan to its equivalent string representation.

ParseW3COffSet ( string s ) : System.TimeSpan

Converts the specified string representation of an offset to its TimeSpan equivalent.

TryParse ( string date, W3CDateTime &result ) : bool

Method Details

IsNull() public static method

Returns a value indicating whether the specified date represents a null date.
public static IsNull ( W3CDateTime dateTime ) : bool
dateTime W3CDateTime The that needs to be checked.
return bool

Parse() public static method

Converts the specified string representation of a W3C date and time to its W3CDateTime equivalent.
public static Parse ( string s ) : W3CDateTime
s string A string containing a date and time to convert.
return W3CDateTime

ToDateString() public method

Converts the value of this instance to its equivalent string representation.
public ToDateString ( ) : string
return string

ToString() public method

Converts the value of this instance to its equivalent string representation.
public ToString ( ) : string
return string

W3CDateTime() public method

Initializes a new instance of the W3CDateTime class.
public W3CDateTime ( System.DateTime dateTime ) : System
dateTime System.DateTime The datetime to represent in a W3C format.
return System

W3CDateTime() public method

Initializes a new instance of the W3CDateTime class.
public W3CDateTime ( System.DateTime dateTime, System.TimeSpan offset ) : System
dateTime System.DateTime The datetime to represent in a W3C format.
offset System.TimeSpan The UTC offest for the datetime.
return System