009-Personal-Alexa-like-Speech-Service / 009---Personal-Alexa-like-Speech-Service

BAA Projekt
0 stars 1 forks source link

New class for time #23

Closed kimmrz closed 3 years ago

kimmrz commented 3 years ago

We want to implement a new recognizer class regarding time.

Example: "Hello Hal, what time is it?"

answer: "Hi Dave, it's 02:26 pm"

Max123S commented 3 years ago

Maybe this library can help https://docs.python.org/3/library/datetime.html

kimmrz commented 3 years ago
import time

epoch_time = 1586944173.957986
local_time = time.ctime(epoch_time)

print("The local time is:", local_time)
kimmrz commented 3 years ago

https://careerkarma.com/blog/python-time/

kimmrz commented 3 years ago

Maybe we can try this code on friday 😄

kimmrz commented 3 years ago

In our session with Herr Zeutschler on Tuesday we managed to implement a class for time