Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 EXSLT 扩展来减去日期。
我看到有一个 date-add 函数,但 EXSLT 文档不包含任何示例。例如,我正在尝试获取当前日期并减去 1 个月。
要减去,请添加负持续时间。
请参阅XML模式规范中的详细信息。
date:add($now, '-P1M')