C# Class System.Xml.Schema.XsdDateTime

This structure extends System.DateTime to support timeInTicks zone and Gregorian types scomponents of an Xsd Duration. It is used internally to support Xsd durations without loss of fidelity. XsdDuration structures are immutable once they've been created.
Afficher le fichier Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Private Properties

Свойство Type Description
GetZuluDateTime System.DateTime
InitiateXsdDateTime void
IntToCharArray void
PrintDate void
PrintTime void
PrintZone void
ShortToCharArray void
TryParse bool
XsdDateTime System

Méthodes publiques

Méthode Description
Compare ( XsdDateTime left, XsdDateTime right ) : int

Compares two DateTime values, returning an integer that indicates their relationship.

CompareTo ( Object value ) : int
ToString ( ) : string

Serialization to a string

ToZulu ( ) : System.DateTime
XsdDateTime ( System.DateTime dateTime, XsdDateTimeFlags kinds ) : System

Constructs an XsdDateTime from a DateTime.

XsdDateTime ( string text ) : System

Constructs an XsdDateTime from a string trying all possible formats.

XsdDateTime ( string text, XsdDateTimeFlags kinds ) : System

Constructs an XsdDateTime from a string using specific format.

Private Methods

Méthode Description
GetZuluDateTime ( ) : System.DateTime
InitiateXsdDateTime ( Parser parser ) : void
IntToCharArray ( char text, int start, int value, int digits ) : void
PrintDate ( StringBuilder sb ) : void
PrintTime ( StringBuilder sb ) : void
PrintZone ( StringBuilder sb ) : void
ShortToCharArray ( char text, int start, int value ) : void
TryParse ( string text, XsdDateTimeFlags kinds, XsdDateTime &result ) : bool
XsdDateTime ( Parser parser ) : System

Method Details

Compare() public static méthode

Compares two DateTime values, returning an integer that indicates their relationship.
public static Compare ( XsdDateTime left, XsdDateTime right ) : int
left XsdDateTime
right XsdDateTime
Résultat int

CompareTo() public méthode

public CompareTo ( Object value ) : int
value Object
Résultat int

ToString() public méthode

Serialization to a string
public ToString ( ) : string
Résultat string

ToZulu() public méthode

public ToZulu ( ) : System.DateTime
Résultat System.DateTime

XsdDateTime() public méthode

Constructs an XsdDateTime from a DateTime.
public XsdDateTime ( System.DateTime dateTime, XsdDateTimeFlags kinds ) : System
dateTime System.DateTime
kinds XsdDateTimeFlags
Résultat System

XsdDateTime() public méthode

Constructs an XsdDateTime from a string trying all possible formats.
public XsdDateTime ( string text ) : System
text string
Résultat System

XsdDateTime() public méthode

Constructs an XsdDateTime from a string using specific format.
public XsdDateTime ( string text, XsdDateTimeFlags kinds ) : System
text string
kinds XsdDateTimeFlags
Résultat System