uCosminexus Interschema ユーザーズガイド
ここでは,DateTimeクラスの仕様について説明します。
java.lang.Object | +-- jp.co.Hitachi.interschema2.exitfunc.DateTime
public final class DateTime extends java.lang.Object
| 形式 | 機能 |
|---|---|
| public DateTime(int year, int month, int day, int hour, int minute, double second, String timeZone) | 指定の値を持つ日付時刻を生成します。 |
| public DateTime(Date date, String timeZone) | 指定の値を持つ日付時刻を生成します。 |
| public DateTime(Date date) | 指定の値を持つ日付時刻を生成します。 |
| public DateTime() | デフォルトの日付時刻を生成します。 |
| 形式 | 機能 |
|---|---|
| public int getYear() | 年を取得します。 |
| public void setYear(int year) | 年を設定します。 |
| public int getMonth() | 月を取得します。 |
| public void setMonth(int month) | 月を設定します。 |
| public int getDay() | 日付を取得します。 |
| public void setDay(int day) | 日付を設定します。 |
| public int getHour() | 時を取得します。 |
| public void setHour(int hour) | 時を設定します。 |
| public int getMinute() | 分を取得します。 |
| public void setMinute(int minute) | 分を設定します。 |
| public double getSecond() | 秒を取得します。 |
| public void setSecond(double second) | 秒を設定します。 |
| public String getZone() | タイムゾーン文字列を取得します。 |
| public void setZone(String timeZone) | タイムゾーン文字列を設定します。 |
| public Date getDate() | 設定された時刻に対応するDateオブジェクトを取得します |
public DateTime(int year,
int month,
int day,
int hour,
int minute,
double second,
String timeZone)
throws ExitFuncException
| 引数 | 内容 |
|---|---|
| year | 年を指定します。 |
| month | 月を指定します。 |
| hour | 時を指定します。 |
| day | 日を指定します。 |
| minute | 分を指定します。 |
| second | 秒を指定します。 |
| timeZone | タイムゾーン文字列を指定します。 |
| 例外 | 内容 |
|---|---|
| ExitFuncException | 引数に範囲外の値を指定した場合に発生します。 |
public DateTime(Date date, String timeZone)
throws ExitFuncException
| 引数 | 内容 |
|---|---|
| date | 日付・時刻を指定します。 |
| timeZone | タイムゾーン文字列です。 |
| 例外 | 内容 |
|---|---|
| ExitFuncException | dateにnullを指定した場合,又は日付・時刻の設定に失敗した場合に発生します。 |
public DateTime(Date date)
throws ExitFuncException
| 引数 | 内容 |
|---|---|
| date | 日付・時刻を指定します。 |
| 例外 | 内容 |
|---|---|
| ExitFuncException | dateにnullを指定した場合,又は日付・時刻の設定に失敗した場合に発生します。 |
public DateTime()
throws ExitFuncException
| 例外 | 内容 |
|---|---|
| ExitFuncException | 日付・時刻の設定に失敗した場合に発生します。 |
public int getYear()
public void setYear(int year)
throws ExitFuncException
| 引数 | 内容 |
|---|---|
| year | 年を指定します。 |
| 例外 | 内容 |
|---|---|
| ExitFuncException | 引数に範囲外の値を指定した場合に発生します。 |
public int getMonth()
public void setMonth(int month)
throws ExitFuncException
| 引数 | 内容 |
|---|---|
| month | 月を指定します。 |
| 例外 | 内容 |
|---|---|
| ExitFuncException | 引数に範囲外の値を指定した場合に発生します。 |
public int getDay()
public void setDay(int day)
throws ExitFuncException
| 引数 | 内容 |
|---|---|
| day | 日付を指定します。 |
| 例外 | 内容 |
|---|---|
| ExitFuncException | 引数に範囲外の値を指定した場合に発生します。 |
public int getHour()
public void setHour(int hour)
throws ExitFuncException
引数
| 引数 | 内容 |
|---|---|
| hour | 時を指定します。 |
| 例外 | 内容 |
|---|---|
| ExitFuncException | 引数に範囲外の値を指定した場合に発生します。 |
形式
public int getMinute()
public void setMinute(int minute)
throws ExitFuncException
| 引数 | 内容 |
|---|---|
| minute | 分を指定します。 |
説明
指定の分を設定します。
| 例外 | 内容 |
|---|---|
| ExitFuncException | 引数に範囲外の値を指定した場合に発生します。 |
public double getSecond()
public void setSecond(double second)
throws ExitFuncException
| 引数 | 内容 |
|---|---|
| second | 秒を指定します。 |
説明
指定の秒を設定します。
| 例外 | 内容 |
|---|---|
| ExitFuncException | 引数に範囲外の値を指定した場合に発生します。 |
public String getZone()
public void setZone(String timeZone)
| 引数 | 内容 |
|---|---|
| timeZone | タイムゾーン文字列を指定します。 |
説明
指定のタイムゾーン文字列を設定します。
public Date getDate()
All Rights Reserved, Copyright (C) 2000, Information-technology Promotion Agency, Japan.
All Rights Reserved. Copyright (C) 2005, 2008, Hitachi, Ltd.
All Rights Reserved, Copyright (C) 1985-1998, Microsoft Corporation.