秒到人类可读时间
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了秒到人类可读时间相关的知识,希望对你有一定的参考价值。
Takes a # of seconds and converts it to human readable format.If happened within seconds-years.
'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; } }
以上是关于秒到人类可读时间的主要内容,如果未能解决你的问题,请参考以下文章