C# Класс Sage.SData.Client.Framework.W3CDateTime

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

IsNull() публичный статический Метод

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.
Результат bool

Parse() публичный статический Метод

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.
Результат W3CDateTime

ToDateString() публичный Метод

Converts the value of this instance to its equivalent string representation.
public ToDateString ( ) : string
Результат string

ToString() публичный Метод

Converts the value of this instance to its equivalent string representation.
public ToString ( ) : string
Результат string

W3CDateTime() публичный Метод

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.
Результат System

W3CDateTime() публичный Метод

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.
Результат System