public static function toRelativeTime($fromTime, $toTime = 'now', $format = 'days')
    {
        $startTime = new DateTime($fromTime);
        $endTime = new DateTime($toTime);

        return $startTime->diff($endTime)->$format;
    }