Blog Archives

PHP Date in Human Readable Format

I’m working on a PHP project that requires human readable, relative date formatting. Below is the PHP function I’m using. The function handles past and future dates. Sample Future Output : 30 seconds to go 1 minute to go 5

Posted in Computers, Programming Tagged with: ,