Php Minus Date. I think this is because now is the current time while tomorrow is the current day 1 but at a default time lets say. Echo interval format in a days.
Essentially this tells the strtotime function to subtract one year from the current unix timestamp. In the php code above we passed in 1 years as a parameter to strtotime. In the example above we set the dateinterval object to p1d which means a period of one day.
Date2 new datetime tomorrow.
Create a date with mktime the optional timestamp parameter in the date function specifies a timestamp. In some situations this won t say in 1 days but in 0 days. Interval date diff date1 date2. Date1 new datetime now.
