C# Class HandCoded.Finance.TimeValue

Inheritance: IImmutableTime, IComparable
Mostrar archivo Open project: formicary/fpml-toolkit-csharp Class Usage Examples

Public Properties

Property Type Description
END_OF_DAY TimeValue
START_OF_DAY TimeValue

Public Methods

Method Description
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+]).

Method Details

CompareTo() public method

Returns the result of comparing this instance to another TimeValue.
public CompareTo ( TimeValue other ) : int
other TimeValue The TimeValue instance to compare with.
return int

CompareTo() public method

Returns the result of comparing this instance to another object.
public CompareTo ( object other ) : int
other object The instance to compare with.
return int

Equals() public method

Determines if this TimeValue instance and another hold the same date.
public Equals ( TimeValue other ) : bool
other TimeValue The TimeValue instance to compare with.
return bool

Equals() public method

Determines if this TimeValue instance and another object hold the same date.
public Equals ( object other ) : bool
other object The instance to compare with.
return bool

GetHashCode() public method

Returns the hash value of the time for hash based data structures and algorithms.
public GetHashCode ( ) : int
return int

TimeValue() public method

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)
return System

TimeValue() public method

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)
return System

TimeValue() public method

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)
return System

ToString() public method

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

Property Details

END_OF_DAY public_oe static_oe property

A time value representing the last instant of the day.
public static TimeValue,HandCoded.Finance END_OF_DAY
return TimeValue

START_OF_DAY public_oe static_oe property

A time value representing the first instant of the day.
public static TimeValue,HandCoded.Finance START_OF_DAY
return TimeValue