|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
@Rcsid(value="$Revision: 15138 $ $Date: 2009-01-17 02:38:48 +0900 $") public interface DateUtil
日付系のユーティリティクラス。
| 入れ子のクラスの概要 | |
|---|---|
static class |
DateUtil.Calendar
日付フィールド(列挙型)。 |
static class |
DateUtil.DayBoundary
日付計算 端入コード(列挙型)。 |
static class |
DateUtil.DayCountFraction
日付計算方法(列挙型)。 |
static class |
DateUtil.DayOfWeek
曜日(列挙型) |
static class |
DateUtil.DayOfWeekInMonth
月内曜日序数(列挙型)。 |
| フィールドの概要 | |
|---|---|
static IntegerType |
D_1
値 1。 |
static IntegerType |
D_12
値 12。 |
static IntegerType |
D_15
値 15。 |
static IntegerType |
D_2
値 2。 |
static IntegerType |
D_360
値 360。 |
static IntegerType |
D_365
値 365。 |
static IntegerType |
D_366
値 366。 |
static IntegerType |
D_M1
値 -1。 |
static IntegerType |
D_M2
値 -2。 |
| メソッドの概要 | |
|---|---|
DateAndTimeType |
getDateTime(DateType date,
TimeType time)
日付時刻型取得 日付型と時刻型を用いて日付時刻型を作成する。 |
IntegerType |
getDays(DateType start,
DateType end,
DateUtil.DayBoundary boundary)
期間計算(日数) 指定した日付間の実日数を返す。 |
IntegerType |
getDays(DateType start,
DateType end,
DateUtil.DayBoundary boundary,
DateUtil.DayCountFraction fraction)
期間計算(日数) 指定した日付間の日数を返す。 |
DateType |
getNthDayByWeekday(DateType baseDate,
DateUtil.DayOfWeekInMonth inMonth,
DateUtil.DayOfWeek week)
第n、Y曜日取得 基準日の月の第n、Y曜日に対応する日付を取得する。 |
DecimalType |
getYears(DateType start,
DateType end,
DateUtil.DayBoundary boundary,
DateUtil.DayCountFraction fraction)
期間計算(年数) 指定した日付の期間(年数)を返す。 |
| フィールドの詳細 |
|---|
static final IntegerType D_1
値 1。
static final IntegerType D_2
値 2。
static final IntegerType D_M1
値 -1。
static final IntegerType D_M2
値 -2。
static final IntegerType D_12
値 12。
static final IntegerType D_15
値 15。
static final IntegerType D_360
値 360。
static final IntegerType D_365
値 365。
static final IntegerType D_366
値 366。
| メソッドの詳細 |
|---|
IntegerType getDays(DateType start,
DateType end,
DateUtil.DayBoundary boundary,
DateUtil.DayCountFraction fraction)
指定した日付間の日数を返す。
start - 開始日end - 終了日boundary - 境界値条件fraction - 日付計算方法
IntegerType getDays(DateType start,
DateType end,
DateUtil.DayBoundary boundary)
指定した日付間の実日数を返す。
start - 開始日end - 終了日boundary - 境界値条件
DecimalType getYears(DateType start,
DateType end,
DateUtil.DayBoundary boundary,
DateUtil.DayCountFraction fraction)
指定した日付の期間(年数)を返す。
start - 開始日end - 終了日boundary - 境界値条件fraction - 日付計算方法
DateType getNthDayByWeekday(DateType baseDate,
DateUtil.DayOfWeekInMonth inMonth,
DateUtil.DayOfWeek week)
基準日の月の第n、Y曜日に対応する日付を取得する。
baseDate - 基準日inMonth - 月内曜日序数week - 曜日
DateAndTimeType getDateTime(DateType date,
TimeType time)
日付型と時刻型を用いて日付時刻型を作成する。 日付型の年月日フィールドと時刻型の時分秒をマージする。
date - 日付time - 時刻
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||