public function humanTimeDiff($time, $chunk = false)
    {
        if (!is_integer($time)) {
            $time = strtotime($time);
        }
        if ($chunk) {
            $different = time() - $time;

            $seconds = $different;
            $minutes = round($different / 60);
            $hours = round($different / 3600);
            $days = round($different / 86400);
            $weeks = round($different / 604800);
            $months = round($different / 2419200);
            $years = round($different / 29030400);

            if ($seconds <= 60) {
                if ($seconds == 1) {
                    return "$seconds second ago";
                } else {
                    return "$seconds seconds ago";
                }
            } elseif ($minutes <= 60) {
                if ($minutes == 1) {
                    return "$minutes minute ago";
                } else {
                    return "$minutes minutes ago";
                }
            } elseif ($hours <= 24) {
                if ($hours == 1) {
                    return "$hours hour ago";
                } else {
                    return "$hours hours ago";
                }
            } elseif ($days <= 7) {
                if ($days = 1) {
                    return "$days day ago";
                } else {
                    return "$days days ago";
                }
            } elseif ($weeks <= 4) {
                if ($weeks == 1) {
                    return "$weeks week ago";
                } else {
                    return "$weeks weeks ago";
                }
            } elseif ($months <= 12) {
                if ($months == 1) {
                    return "$months month ago";
                } else {
                    return "$months months ago";
                }
            } else {
                if ($years == 1) {
                    return "$years year ago";
                } else {
                    return "$years years ago";
                }
            }
        } else {
            $dtF = new \DateTime('@0');
            $dtT = new \DateTime("@$time");
            return $dtF->diff($dtT)->format('%a days, %h hours, %i minutes and %s seconds');
        }
    }