This tutorial explains how to use the MySQL SUBTIME function with syntax and examples.
The MySQL SUBTIME function returns a time/datetime value after which a certain time interval has been subtracted.
The syntax for the SUBTIME function in MySQL is:
A time or datetime value to which the time interval should be subtracted.
The value of the time interval that you wish to subtract. It can be a positive or negative number.
The SUBTIME function can be used in the following versions of MySQL:
Let's look at some MySQL SUBTIME function examples and explore how to use the SUBTIME function in MySQL.
For example: