C# Класс HandCoded.Finance.TimeZone

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

Открытые свойства

Свойство Тип Описание
UTC TimeZone

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

Метод Описание
CompareTo ( TimeZone other ) : int

Returns the result of comparing this instance to another TimeZone.

CompareTo ( object other ) : int

Returns the result of comparing this instance to another object.

Equals ( TimeZone other ) : bool

Determines if this instance and another TimeZone hold the same value.

Equals ( object other ) : bool

Determines if this TimeZone instance and another object hold the same time value.

GetHashCode ( ) : int

Returns the hash value of the instance for hash based data structures and algorithms.

IsUTC ( ) : bool

Determines if the TimeZone is UTC.

TimeZone ( ) : System

Constructs a TimeZone instance initialised with the offset for the default time zone where the application is executing.

TimeZone ( int offset ) : System

Constructs a TimeZone instance having a specified offset value.

ToString ( ) : string

Return a formatted represetation of the TimeZone. If the offset is zero this will be a 'Z' otherwise it will be '+HH:MM' or '-HH:MM'.

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

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

Returns the result of comparing this instance to another TimeZone.
public CompareTo ( TimeZone other ) : int
other TimeZone The TimeZone instance to compare with.
Результат int

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

Returns the result of comparing this instance to another object.
public CompareTo ( object other ) : int
other object The instance to compare with.
Результат int

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

Determines if this instance and another TimeZone hold the same value.
public Equals ( TimeZone other ) : bool
other TimeZone The other TimeZone.
Результат bool

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

Determines if this TimeZone instance and another object hold the same time value.
public Equals ( object other ) : bool
other object The other to compare with.
Результат bool

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

Returns the hash value of the instance for hash based data structures and algorithms.
public GetHashCode ( ) : int
Результат int

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

Determines if the TimeZone is UTC.
public IsUTC ( ) : bool
Результат bool

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

Constructs a TimeZone instance initialised with the offset for the default time zone where the application is executing.
public TimeZone ( ) : System
Результат System

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

Constructs a TimeZone instance having a specified offset value.
public TimeZone ( int offset ) : System
offset int The timezone offset in minutes.
Результат System

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

Return a formatted represetation of the TimeZone. If the offset is zero this will be a 'Z' otherwise it will be '+HH:MM' or '-HH:MM'.
public ToString ( ) : string
Результат string

Описание свойств

UTC публичное статическое свойство

A TimeZone instance representing UTC.
public static TimeZone UTC
Результат TimeZone