Date and Time functions
$timestamp = time()-3600;
$ago = age($timestamp); //returns 1 hour
$timestamp = time()+3600
$in = future_age($timestamp); //returns 1 hour
$time = timestamp()-7200;
$hours = hours($time); //returns 2
Same prototype as age() but works on a future time
Language | php |
Version | 0.0.0 |
Git URL | https://github.com/nullivex/func-time |
License | GPL-3.0 |
Description | Date and Time functions |
Keywords |