toTimeZone(str: String): TimeZone String 値を TimeZone 値に変換します。 DataWeave バージョン 2.4.0 で導入されました。 パラメーター 名前 説明 str TimeZone 値に変換する String 値。 例 次の例では、さまざまな入力での toTimeZone の動作を示します。 application/dw 形式の出力が生成されます。 ソース %dw 2.0 import * from dw::util::Coercions output application/dw --- { toTimeZoneOffset: toTimeZone("-03:00"), toTimeZoneAbbreviation: toTimeZone("Z"), toTimeZoneName: toTimeZone("America/Argentina/Buenos_Aires") } 出力 { toTimeZoneOffset: |-03:00|, toTimeZoneAbbreviation: |Z|, toTimeZoneName: |America/Argentina/Buenos_Aires| }
toTimeZone(str: String): TimeZone String 値を TimeZone 値に変換します。 DataWeave バージョン 2.4.0 で導入されました。 パラメーター 名前 説明 str TimeZone 値に変換する String 値。 例 次の例では、さまざまな入力での toTimeZone の動作を示します。 application/dw 形式の出力が生成されます。 ソース %dw 2.0 import * from dw::util::Coercions output application/dw --- { toTimeZoneOffset: toTimeZone("-03:00"), toTimeZoneAbbreviation: toTimeZone("Z"), toTimeZoneName: toTimeZone("America/Argentina/Buenos_Aires") } 出力 { toTimeZoneOffset: |-03:00|, toTimeZoneAbbreviation: |Z|, toTimeZoneName: |America/Argentina/Buenos_Aires| }