Advertisement
zero50x

Работа с strtotime и датами timestamp

Nov 18th, 2015
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.11 KB | None | 0 0
  1. $timestamp = strtotime('11:47') + 60*60; /* +1 час  */
  2.  
  3. $time = date('H:i', $timestamp);
  4.  
  5. echo $time;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement