OHyMoS.NET Class Library

OhTimePoint メンバ

OhTimePoint 概要

静的 パブリック フィールド

DAY 日を表す配列のインデックス(定数)です。 toCalendarArray()で 使用されます。 The index of the element of the calendar array which contains the datum of day. The calendar array is obtained by toCalendarArray().
HOUR 時間を表す配列のインデックス(定数)です。 toCalendarArray()で 使用されます。 The index of the element of the calendar array which contains the datum of hour. The calendar array is obtained by toCalendarArray().
MINUTE 分を表す配列のインデックス(定数)です。 toCalendarArray()で 使用されます。 The index of the element of the calendar array which contains the datum of munute. The calendar array is obtained by toCalendarArray().
MONTH 月を表す定数です。 toCalendarArray()で 使用されます。 The index of the element of the calendar array which contains the datum of month. The calendar array is obtained by toCalendarArray().
OhTimePointMax 現実的にこれ以上最新の時刻はないと思われる時刻です。
  • _year : 10000
  • _tsec : 0
をもって定義しています。
OhTimePointMin 現実的にこれ以上昔の時刻はないと思われる時刻です。
  • _year : -1
  • _tsec : 0
をもって定義しています。
SECOND 秒を表す配列のインデックス(定数)です。 toCalendarArray()で 使用されます。 The index of the element of the calendar array which contains the datum of second. The calendar array is obtained by toCalendarArray().
YEAR 西暦年を表す配列のインデックス(定数)です。 toCalendarArray()で 使用されます。 The index of the element of the calendar array which contains the datum of year. The calendar array is obtained by toCalendarArray().
ZERO 西暦0年0時0分0秒0.0を持つOhTimePointオブジェクトです。 OhTimePoint object with year = 0, sec = 0 and frac = 0.0.

静的 パブリック メソッド

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 を引いた時刻を返します。

静的 内部プロテクト フィールド

lDay うるう年の月の日数の配列です。 要素は1月から12月の日数です。
nDay うるう年でない年の月の日数の配列です。 要素は1月から12月の日数です。

パブリック コンストラクタ

OhTimePoint オーバーロード。 OhTimePoint クラスの新しいインスタンスを初期化します。

パブリック プロパティ

Frac 経過秒数の小数部分を取得・設定します。 Gets and sets the fraction of seconds.
OneYearInSec その年の総秒数を取得します。 Gets the number of seconds contained in the year of the time expressed by this OhTimePoint object
Tsec 年始からの秒数を取得・設定します。 Gets the time from the beginning of the year of the time expressed by this OhTimePoint object. Sets this OhTimePoint time at the time point when 'aTsec' seconds have elapsed from the beginning of the year.
Year 西暦年を取得、または 西暦年、その年の秒数を設定します。 Gets and the year, and sets the year and the seconds from the beginning of it.

パブリック メソッド

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.

内部プロテクト フィールド

_frac 経過時間[sec]の小数部分です。-0.5以上、0.5未満とします。
_oneYearInSec 対象とする年の年間の総秒数[sec]です
_tsec 対象とする年の年始からの経過時間[sec]です。
_year 年です。

参照

OhTimePoint クラス | OhymosNet 名前空間