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

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

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

Свойство Тип Описание
END_OF_DAY TimeValue
START_OF_DAY TimeValue

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

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

Returns the result of comparing this instance to another TimeValue.

CompareTo ( object other ) : int

Returns the result of comparing this instance to another object.

Equals ( TimeValue other ) : bool

Determines if this TimeValue instance and another hold the same date.

Equals ( object other ) : bool

Determines if this TimeValue instance and another object hold the same date.

GetHashCode ( ) : int

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

TimeValue ( int hours, int minutes ) : System

Constructs a TimeValue instance based on the supplied hour, minute and seconds values.

TimeValue ( int hours, int minutes, decimal seconds ) : System

Constructs a TimeValue instance based on the supplied hour, minute and seconds values.

TimeValue ( int hours, int minutes, int seconds ) : System

Constructs a TimeValue instance based on the supplied hour, minute and seconds values.

ToString ( ) : string

Converts the value of this TimeValue instance into a string for display in ISO format (e.g. HH:MM:SS[.S+]).

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

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

Returns the result of comparing this instance to another TimeValue.
public CompareTo ( TimeValue other ) : int
other TimeValue The TimeValue 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 TimeValue instance and another hold the same date.
public Equals ( TimeValue other ) : bool
other TimeValue The TimeValue instance to compare with.
Результат bool

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

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

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

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

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

Constructs a TimeValue instance based on the supplied hour, minute and seconds values.
If the hours or minutes /// values are outside the correct range.
public TimeValue ( int hours, int minutes ) : System
hours int The hours (0-24)
minutes int The minutes (0-59)
Результат System

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

Constructs a TimeValue instance based on the supplied hour, minute and seconds values.
If the hours, minutes or seconds /// values are outside the correct range.
public TimeValue ( int hours, int minutes, decimal seconds ) : System
hours int The hours (0-24)
minutes int The minutes (0-59)
seconds decimal The seconds (0-59.99)
Результат System

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

Constructs a TimeValue instance based on the supplied hour, minute and seconds values.
If the hours, minutes or seconds /// values are outside the correct range.
public TimeValue ( int hours, int minutes, int seconds ) : System
hours int The hours (0-24)
minutes int The minutes (0-59)
seconds int The seconds (0-59)
Результат System

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

Converts the value of this TimeValue instance into a string for display in ISO format (e.g. HH:MM:SS[.S+]).
public ToString ( ) : string
Результат string

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

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

A time value representing the last instant of the day.
public static TimeValue,HandCoded.Finance END_OF_DAY
Результат TimeValue

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

A time value representing the first instant of the day.
public static TimeValue,HandCoded.Finance START_OF_DAY
Результат TimeValue