First of all, for the operation of time, through a few examples.
$remind_time_nowdate(‘Y-m-d‘,$end_time).‘09:00:00‘;
This is the time stamp conversion, the date function has a lot of conversion, the first parameter is to represent the format you need, if sometimes you need only time stamp to provide date, and then a few minutes of the data you decide, you can use this way to convert the time stamp into the form of a month and a day, Then stitching on the time data, to the space then a few points: a few seconds.
$ysubstr($remind_date,0,4);$msubstr($remind_date,5,2);$dsubstr($remind_date,8,2);
If you receive the time data for the 2015-02-05, you can get the time you want by substr this string truncation method, you can get the number of month and day corresponding
$end_time = strtotime($data[‘end_time‘]);
Strtotime This method converts the format of the date time of 2015-11-11 09:22:22 to the form of a timestamp.
$remind_timestamp$end_time+4*60*60*24;
This method is to give you a given time stamp plus a few days of time, the length of the day timestamp is 60*60*24.
The learning record for the Social Security Cutoff Day interface---for PHP time (date_time and timestamp)