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

Afficher le fichier Open project: Saleslogix/SDataCSharpClientLib Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat bool

Parse() public static méthode

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.
Résultat W3CDateTime

ToDateString() public méthode

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

ToString() public méthode

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

W3CDateTime() public méthode

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.
Résultat System

W3CDateTime() public méthode

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.
Résultat System