Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: PHP Days/Minutes/Secs Ago
09-12-2008, 05:26 AM #1
PHP Days/Minutes/Secs Ago
I want a script where it tells the days, minutes, and or seconds of some a time.
I already tried PHPmanual and Google so yeah...Formerly MysticScript
6+ years club
09-12-2008, 06:03 PM #2
- Join Date
- May 2008
- Thanked 21 Times in 21 Posts
If you want to use the current time use time() as the second parameter OR omit the second parameter entirely. Otherwise you can use any unix timestamp as the value of the second parameter and it'll work.PHP Code:
echo date('Y-m-d H:i:s',time());