gpt4 book ai didi

Marklogic 7 fn :format-dateTime 问题

转载 作者:行者123 更新时间:2023-12-03 00:07:57 25 4
gpt4 key购买 nike

在 MarkLogic 7.0-4 中,当小数秒以 0 开头时,fn:format-dateTime 函数似乎返回不正确的值。

以下查询在 MarkLogic 5.0-5 和 7.0-4 中返回不同的结果

let $currentUTCTime := xs:dateTime("2014-10-30T15:23:20.092563Z")

return fn:format-dateTime($currentUTCTime,"[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01].[f001]")

正确结果 – 2014-10-30T15:23:20.092

MarkLogic 5.0-5 结果 – 2014-10-30T15:23:20.092

MarkLogic 7.0-4 结果 – 2014-10-30T15:23:20.930

这似乎是一个错误。有人对此有任何想法吗?

最佳答案

哈利,你是对的,这是一个错误,目前正在修复中。

关于Marklogic 7 fn :format-dateTime 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26658667/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com