Flex Gateway新着情報
Governance新着情報
Monitoring API Manager入力内の Time 値を指定された時間の開始に変更する新しい DateTime 値を返します。
入力内の分および秒は 00:00 に変更されます。
DataWeave バージョン 2.4.0 で導入されました。
| 名前 | 説明 |
|---|---|
|
参照する |
次の例では、DateTime 入力内の Time 値を指定された時間の開始に変更します。
%dw 2.0
import * from dw::core::Dates
output application/json
---
{
"atBeginningOfHourDateTime": atBeginningOfHour(|2020-10-06T18:23:20.351-03:00|)
}DataWeave
{
"atBeginningOfHourDateTime": "2020-10-06T18:00:00-03:00"
}Json
入力内の Time 値を指定された時間の開始に変更する新しい LocalDateTime 値を返します。
入力内の分および秒は 00:00 に変更されます。
DataWeave バージョン 2.4.0 で導入されました。
| 名前 | 説明 |
|---|---|
|
参照する |
次の例では、LocalDateTime 入力内の Time 値を指定された時間の開始に変更します。
%dw 2.0
import * from dw::core::Dates
output application/json
---
{
"atBeginningOfHourLocalDateTime": atBeginningOfHour(|2020-10-06T18:23:20.351|)
}DataWeave
{
"atBeginningOfHourLocalDateTime": "2020-10-06T18:00:00"
}Json
入力内のその値を指定された時間の開始に変更する新しい LocalTime 値を返します。
入力内の分および秒は 00:00 に変更されます。
DataWeave バージョン 2.4.0 で導入されました。
| 名前 | 説明 |
|---|---|
|
参照する |
次の例では、LocalTime 値を指定された時間の開始に変更します。
%dw 2.0
import * from dw::core::Dates
output application/json
---
{
"atBeginningOfHourLocalTime": atBeginningOfHour(|18:23:20.351|)
}DataWeave
{
"atBeginningOfHourLocalTime": "18:00:00"
}Json
入力値を指定された時間の開始に変更する新しい Time 値を返します。
入力内の分および秒は 00:00 に変更されます。
DataWeave バージョン 2.4.0 で導入されました。
| 名前 | 説明 |
|---|---|
|
参照する |
次の例では、Time 値を指定された時間の開始に変更します。
%dw 2.0
import * from dw::core::Dates
output application/json
---
{
"atBeginningOfHourTime": atBeginningOfHour(|18:23:20.351-03:00|)
}DataWeave
{
"atBeginningOfHourTime": "18:00:00-03:00"
}Json