(PHP 5 >= 5.3.0, PHP 7)
Subtracts an amount of days, months, years, hours, minutes and seconds from a DateTime object
public DateTime DateTime::sub ( DateInterval $interval )
Object oriented style
Procedural style
DateTime date_sub ( DateTime $object , DateInterval $interval )
Subtracts the specified DateInterval object from the specified DateTime object.
Parameters:
object