Exemple #1
0
 def datetime(self):
     """
     Instructs the speak server to say the current date and time.
     """
     speak_server["say_text"]("today is " + 
             speakutils.format_weekday_month_day(current_time) + 
             " :p:600 the_time is " + 
             speakutils.format_time(current_time), callback=None)
Exemple #2
0
 def time(self):
     """
     Instructs the speak server to say the current time.
     """
     speak_server["say_text"]("the_time is " + 
             speakutils.format_time(current_time), callback=None)