1>Used m_time and m_date as variables instead of time and date to avoid confusion and also to avoid any unseen error because of datetime module.
2>Normally a user might want to just send message after 30 minutes or after an hour, it is rare for someone to set the program to send message after a day or so, therefore m_date is a default variable with current date as value so that a user only needs to enter value for m_date when he wants to send the message on some other day.
3>datetime.datetime.now() also gives milliseconds along with seconds, to remove milliseconds string slicing was used str(datetime.datetime.now())[:-7] was used.
4>This method will compare user given date&time with system date&time in a loop until both matches.
1>Used m_time and m_date as variables instead of time and date to avoid confusion and also to avoid any unseen error because of datetime module. 2>Normally a user might want to just send message after 30 minutes or after an hour, it is rare for someone to set the program to send message after a day or so, therefore m_date is a default variable with current date as value so that a user only needs to enter value for m_date when he wants to send the message on some other day. 3>datetime.datetime.now() also gives milliseconds along with seconds, to remove milliseconds string slicing was used str(datetime.datetime.now())[:-7] was used. 4>This method will compare user given date&time with system date&time in a loop until both matches.