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.
说你有format-time(current-time(), '[P]'):
format-time(current-time(), '[P]')
a.m.
p.m.
[PN]
A.M.
P.M.
是否可以像XSLT 2.0 规范的示例中那样获得am或?pm
am
pm
可以在格式图片字符串中指定最小/最大宽度,格式为min-max. 将长度限制为 2 会产生撒克逊语的预期结果,例如:
min-max
format-time(current-time(), '[P,2-2]')