加入机器人自由的 合作伙伴和联盟 的程序和支持我们免费开放平台
Self, AIML, and scripting : date and time script

RE: date and time script

通过 admin 发布 Sep 9 2016, 7:51

You can change the Watch script, or create your own to change the timezone for the current time.

For example,
Template("The time in Rome is {Date.setTimeZone(Date.time(), "CET")}.")

When you ask "what is the time in *", to change the timezone you need to give a valid timezone name or code. Otherwise it will answer the GMT time.

For example,
"what is the time in CET?"

Would be for Rome.


Id: 13959867
发布: Sep 9 2016, 7:51
答复: 0
的风景: 1619, 今天: 1, 周: 1, 一个月: 5
0 0 0.0/5