1

我的集成源是发送日期时间07/01/2015 23:59:00 UTC并期望输出为2015-07-01T23:59:00-00:00.

在 Oracle Service Bus 中,我使用 fn-bea:dateTime-from-string-with-format("MM/dd/yyyy HH:mm:ss Z,data($products/startDate))了输出为 2015-07-01T23:59:00Z 的函数。

是否有内置函数来获取上述时间模式。

4

1 回答 1

2

format-dateTime($dateTime, $pattern)与匹配的日期图片字符串一起使用。例如:

format-dateTime(current-dateTime(), "[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01][Z]")

输出(对于我当前的时间和时区):

2015-06-30T23:45:51+02:00
于 2015-06-30T21:48:12.580 回答