I have python3 program that writes to a mysql database and I want the python3 program to send an alarm if it has been more than 15 minute since the last entry. The problem is I don't know how to subtract the python3 datetime.now() from the mysql datetime table entry
Thanks
I am bit unclear about the datetime stored in table, If you are storing datetime in proper format then just normal subtraction should work.
Output: