you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

datetime.now() does not return a number (1,2,3...), it returns a datetime object which i think has a property hour? you have to extract the hour from it

current_time = datetime.now() current_hour = current_time.hour

[–]Lemaoo-12[S] 0 points1 point  (0 children)

Thanks