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.
迈克关于在 KRL 中获得时间的问题的后续问题。是否可以获取用户的时区?有一个时区谓词,
time:timezone(<arg>)
但看起来它需要一个论点。我该如何使用它?
time:timezone(<arg>)是返回真或假的谓词。
我将更正文档,但 time:timezone() 采用时区缩写并检查用户的地理位置(基于 IP 地址)并返回 true 或 false
rule first_rule is active { select when pageview ".*" setting () if (time:timezone("MST")) then { notify("Glee alert", "Glee starts at 7pm"); } }