$date = new Zend_Date('2022-04-03'); $date->addDay(1); echo $date; // Output: 2022-04-04
$date = new Zend_Date('2022-04-03'); $date->addMonth(1); echo $date; // Output: 2022-05-03
$date = new Zend_Date('2022-04-03 12:00:00'); $date->addHour(1); echo $date; // Output: 2022-04-03 13:00:00In these examples, we instantiate a Zend_Date object with a given date/time value, then call the relevant add method to add the desired interval. Finally, we can output the updated date/time value using the object's toString method. In conclusion, the package library used in these examples is the Zend Framework, specifically the Zend_Date component.