/ Published in: PHP

Takes a # of seconds and converts it to human readable format.
If happened within seconds-years.
If happened within seconds-years.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
'year' => 31556926, 'month' => 2629743, 'week' => 604800, 'day' => 86400, 'hour' => 3600, 'minute' => 60, 'second' => 1 ); foreach($points as $point => $value) { { $s = $elapsed>1?'s':''; $timestamp = "$elapsed $point$s"; break; } }
Comments
