problem about relative-date-Collection of common programming errors


  • hakre
    php time php-errors relative-date
    function RelativeTime($timestamp) {$difference = time() – $timestamp;$periods = array(“sec”, “min”, “hour”, “day”, “week”, “month”, “years”, “decade”);$lengths = array(“60”, “60”, “24”, “7”, “4.35”, “12”, “10”);if ($difference > 0)

Originally posted 2013-11-09 19:10:41.