Closed ghostrider22 closed 2 years ago
date&time format --> yyyy-mm-dd hour:minute:second
sample input : tithiwabot.send_messages_at_time("Aman", "Hello","2021-10-20 20:22:47")
datetime.datetime.now() also gives milliseconds along with time, therefore string slicing had been used to remove milliseconds: str(datetime.datetime.now())[:-7]
date&time format --> yyyy-mm-dd hour:minute:second
sample input : tithiwabot.send_messages_at_time("Aman", "Hello","2021-10-20 20:22:47")
datetime.datetime.now() also gives milliseconds along with time, therefore string slicing had been used to remove milliseconds: str(datetime.datetime.now())[:-7]