DateTimeZone (クラス)
public final serializable DateTimeZone
パッケージ: CURL.LANGUAGE.DATE-TIME

DateTimeData オブジェクトと DateTimeInfo オブジェクト間のマッピングで役に立つクラス。このクラスは不変です。


コンストラクタ
default:新しい DateTimeZone オブジェクトを作成します。
コンストラクタ public {DateTimeZone.default
mode:DateTimeZoneMode = DateTimeZoneMode.local,
utc-offset-minutes:int = 0
}
object-deserialize:
コンストラクタ public {DateTimeZone.object-deserialize in:SerializeInputStream}

プロパティ
mode:DateTimeZoneMode.utc または DateTimeZoneMode.local のいずれか。
フィールド public constant DateTimeZone.mode:DateTimeZoneMode
utc-offset-minutes:UTC からのオフセット (分単位)。
フィールド public constant DateTimeZone.utc-offset-minutes:int
utc-offset-string:UTC からのオフセットの文字列を ISO 8601 フォーマットで返します。utc として作成されていないインスタンスでこのメソッドを呼び出すとエラーが発生します。
アクセサ public DateTimeZone.utc-offset-string:String

クラス変数と定数
local:DateTimeZoneMode.local を使用する DateTimeZone
public constant DateTimeZone.local:DateTimeZone ={DateTimeZone mode = DateTimeZoneMode.local}
utc:DateTimeZoneMode.utc を使用する DateTimeZone
public constant DateTimeZone.utc:DateTimeZone ={DateTimeZone mode = DateTimeZoneMode.utc}

メソッド
object-serialize:クラス インスタンスが書き込まれるときに、シリアル化コードで呼び出されます。
public {DateTimeZone.object-serialize out:SerializeOutputStream}:void
メソッド 継承 Object: object-describe, object-describe-for-debugging



コンストラクタ詳細
default (コンストラクタ)
public {DateTimeZone.default
mode:DateTimeZoneMode = DateTimeZoneMode.local,
utc-offset-minutes:int = 0
}

新しい DateTimeZone オブジェクトを作成します。

mode: 列挙体 DateTimeZoneMode のモードの 1 つ。既定値は DateTimeZoneMode.local です。
utc-offset-minutes: UTC からのオフセット (分単位)。この値はモードが DateTimeZoneMode.utc の場合にだけ意味があり、その他の場合はゼロ (既定値) になります。

注意事項

夏時間があるのは、DateTimeZoneMode.local だけです。


object-deserialize (コンストラクタ)
public {DateTimeZone.object-deserialize in:SerializeInputStream}
この項目はサポートされていません。内部使用限定となっています。



プロパティ詳細
mode (フィールド)
public constant DateTimeZone.mode:DateTimeZoneMode

DateTimeZoneMode.utc または DateTimeZoneMode.local のいずれか。



utc-offset-minutes (フィールド)
public constant DateTimeZone.utc-offset-minutes:int

UTC からのオフセット (分単位)。

注意事項

この値は local ゾーンに対して常にゼロになります。


utc-offset-string (アクセサ)
アクセサ public DateTimeZone.utc-offset-string:String

UTC からのオフセットの文字列を ISO 8601 フォーマットで返します。utc として作成されていないインスタンスでこのメソッドを呼び出すとエラーが発生します。




クラス変数と定数の詳細
local (クラス定数)
public constant DateTimeZone.local:DateTimeZone ={DateTimeZone mode = DateTimeZoneMode.local}

DateTimeZoneMode.local を使用する DateTimeZone

説明

これは、便利な略記法であり、DateTimeZone オブジェクトを作成する必要がなくなります。


utc (クラス定数)
public constant DateTimeZone.utc:DateTimeZone ={DateTimeZone mode = DateTimeZoneMode.utc}

DateTimeZoneMode.utc を使用する DateTimeZone

説明

これは、便利な略記法であり、DateTimeZone オブジェクトを作成する必要がなくなります。




メソッド詳細
object-serialize (メソッド)
public {DateTimeZone.object-serialize out:SerializeOutputStream}:void

クラス インスタンスが書き込まれるときに、シリアル化コードで呼び出されます。

out: このメソッドを呼び出した SerializeOutputStream

説明

このメソッドは、次のステップを順番に実行する必要があります。
  1. SerializeOutputStream.write-class-version を呼び出します。通常は引数にゼロ (0) を指定します。
  2. シリアル化可能なスーパークラスごとに super.object-serialize を呼び出します。
  3. シリアル化された状態を out に書き込みます。これは通常、フィールドごとに SerializeOutputStream.write-one を呼び出すことによって実行されます。

注意事項

このメソッドは、シリアル化可能なサブクラスでのみ定義する必要があります。