C# 클래스 HandCoded.Finance.Time

상속: Temporal, IComparable
파일 보기 프로젝트 열기: formicary/fpml-toolkit-csharp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
END_OF_DAY Time
START_OF_DAY Time

공개 메소드들

메소드 설명
CompareTo ( Object other ) : int

Returns the result of comparing this instance to another Object.

CompareTo ( Time other ) : int

Returns the result of comparing this instance to another Time instance.

Equals ( Time other ) : bool

Determines if the Time instance and another hold the same value.

Equals ( object other ) : bool

Determines if the Time instance and another Object hold the same value.

GetHashCode ( ) : int

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

Parse ( string text ) : Time

Parses a character string in the format HH:MM:SS and uses the extracted values to construct a Time instance.

Time ( int hours, int minutes ) : System

Constructs a Time instance based on the supplied hour and minute values.

Time ( int hours, int minutes, decimal seconds, bool utc ) : System

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

Time ( int hours, int minutes, decimal seconds, int offset ) : System

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

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

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

Time ( int hours, int minutes, int seconds, bool utc ) : System

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

Time ( int hours, int minutes, int seconds, int offset ) : System

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

ToString ( ) : string

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

비공개 메소드들

메소드 설명
Time ( TimeValue timeValue, TimeZone timeZone ) : System

Constructs a Time from its time and time zone components.

ToDateTime ( ) : DateTime

Creates a DateTime instance from the current time.

메소드 상세

CompareTo() 공개 메소드

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

CompareTo() 공개 메소드

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

Equals() 공개 메소드

Determines if the Time instance and another hold the same value.
public Equals ( Time other ) : bool
other Time The to compare with.
리턴 bool

Equals() 공개 메소드

Determines if the Time instance and another Object hold the same value.
public Equals ( object other ) : bool
other object The to compare with.
리턴 bool

GetHashCode() 공개 메소드

Returns the hash value of the date for hash based data structures and algorithms.
public GetHashCode ( ) : int
리턴 int

Parse() 공개 정적인 메소드

Parses a character string in the format HH:MM:SS and uses the extracted values to construct a Time instance.
If the character string is not /// in the correct format or the hour, minute or second values are outside /// the correct range.
public static Parse ( string text ) : Time
text string The character string to be parsed.
리턴 Time

Time() 공개 메소드

Constructs a Time instance based on the supplied hour and minute values.
public Time ( int hours, int minutes ) : System
hours int The number of hours (0-24).
minutes int The number of minutes (0-59).
리턴 System

Time() 공개 메소드

Constructs a Time instance based on the supplied hour, minute and seconds values.
public Time ( int hours, int minutes, decimal seconds, bool utc ) : System
hours int The number of hours (0-24).
minutes int The number of minutes (0-59).
seconds decimal The number of seconds (0-59.99).
utc bool Indicates UTC time zone.
리턴 System

Time() 공개 메소드

Constructs a Time instance based on the supplied hour, minute and seconds values.
public Time ( int hours, int minutes, decimal seconds, int offset ) : System
hours int The number of hours (0-24).
minutes int The number of minutes (0-59).
seconds decimal The number of seconds (0-59.99).
offset int The time zone offset.
리턴 System

Time() 공개 메소드

Constructs a Time instance based on the supplied hour, minute and seconds values.
public Time ( int hours, int minutes, int seconds ) : System
hours int The number of hours (0-24).
minutes int The number of minutes (0-59).
seconds int The number of seconds (0-59).
리턴 System

Time() 공개 메소드

Constructs a Time instance based on the supplied hour, minute and seconds values.
public Time ( int hours, int minutes, int seconds, bool utc ) : System
hours int The number of hours (0-24).
minutes int The number of minutes (0-59).
seconds int The number of seconds (0-59).
utc bool Indicates UTC time zone.
리턴 System

Time() 공개 메소드

Constructs a Time instance based on the supplied hour, minute and seconds values.
public Time ( int hours, int minutes, int seconds, int offset ) : System
hours int The number of hours (0-24).
minutes int The number of minutes (0-59).
seconds int The number of seconds (0-59).
offset int The time zone offset.
리턴 System

ToString() 공개 메소드

Converts the value of this Time instance into a string for display in full ISO format (e.g. HH:MM:SS[.S+][[Z|+HH:MM|-HH:MM]]).
public ToString ( ) : string
리턴 string

프로퍼티 상세

END_OF_DAY 공개적으로 정적으로 프로퍼티

A constant Time instance representing the last instant of the day.
public static Time,HandCoded.Finance END_OF_DAY
리턴 Time

START_OF_DAY 공개적으로 정적으로 프로퍼티

A constant Time instance representing the first instant of the day.
public static Time,HandCoded.Finance START_OF_DAY
리턴 Time