OHyMoS.NET Class Library

OhTimePoint メソッド

OhTimePoint クラスのメソッドは以下のとおりです。OhTimePoint クラスの完全なメンバ一覧については、 OhTimePoint メンバ のトピックを参照してください。

静的 パブリック メソッド

addオーバーロード。 Adds aTime to aTp and returns the resultant object.

時刻 aTp に、時間 aTime を足した時刻を返します。
compare Compares two OhTimePointImmutable objects aTpa and aTpb. When the time difference of the two objects is less than aEps, then 0 is returned.

二つの時刻 aTpaaTpb の時間差を調べます。 時間差の絶対値が aEps より小さい場合は、実質的に等し いと見なして、0 を返します。aTpaaTpb - aEps より前のときは、-1 を返します。 aTpaaTpb + aEps より後のときは、 +1 を返します。
isLeapYear 引数aYearがうるう年かを判定します。 Tests if the year 'aYear' is a leap year or not.
subオーバーロード。 Subtract aTime from aTp and returns the resultant OhTimePoint object.

時刻 aTp から、時間 aTime を引いた時刻を返します。

パブリック メソッド

addオーバーロード。 Adds the specified amount of seconds to the current object and returns the updated object.
Clone Object型にキャストされたOhTimePointオブジェクトのディープコピーを返します。 Returns a deep copy of the current object
CompareToオーバーロード。 Compares the current OhTimePoint object to another object 'arg' and returns the result. The returend value is 1, 0, -1
copy 引数tpのメンバ変数をコピーします。 Copies fields from those of OhTimePoint tp.
equals 引数に指定したオブジェクト anObj が OhTimePointImmutable オブジェクトであって、かつ、現在の OhTimePointImmutable オブジェクトとの時間差が anEps より小さいかをテストします。 Tests if the specified Object is an instance of OhTimePointImmutable and if the time differenc between the current time point and anObj is less than anEps.
Equals 引数に指定したオブジェクトが OhTimePointImmutable オブジェ クトであって、かつ、現在の OhTimePointImmutable オブジェク トと同じ状態であるかをテストします。 Tests if the specified Object is an instance of OhTimePointImmutable and if it is equal to this OhTimePoint.
subオーバーロード。 Sutracts aLongTime from the current OhTimePoint object and returnts the updated object.

現在の OhTimePoint オブジェクトから aLongTime 引数で指定す る時間を引きます。
toCalendarArray 時刻の配列({年、月、日、時、分、秒})を返します。 Converts the current OhTimePoint object to the Calendar array.
toCalendarString Returns the CalendaString. For example, this method returns "20030101010101 0.0" for 2003 January 1st, 01:01:01 0.0.
ToString Returns "" + _year + " " + _tsec + " " + _frac.

参照

OhTimePoint クラス | OhTimePoint メンバ | OhymosNet 名前空間