PHP relative time/date format.

Hi guys.
Do you know how a php relative date/time script can be made?. When i say relative i mean like “X days ago”, “X minutes ago”, “X seconds ago” and stuff like, “Today, 5:58PM”.

I really need it for my current project heh and it is just one of those things that i can’t work out.

thanks in advance

You should look up the date() and time() functions for PHP, and then go from there.

Sponsor our Newsletter | Privacy Policy | Terms of Service