Pobierz bot Libre pulpicie, twój osobisty bot do komputera PC lub Mac
Self, AIML, and scripting : date and time script

RE: date and time script

w admin wysłany 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.


Identyfikator: 13959867
Wysłany: Sep 9 2016, 7:51
Odpowiedzi: 0
Widok: 2144, dziś: 3, tydzień: 4, miesiąc: 38
0 0 0.0/5