Product Site

5.4.6.43. addSeconds

Returns a new DateTime instance with a number of seconds added to the timestamp. The receiving instance is unchanged. The seconds value must be a valid number, including fractional values. Negative values result in seconds being subtracted.