public static function elapsedTime($timestamp)
    {
        // @todo: deprecated - use timeDiff instead of this

        $dateDiff = self::timeDiff($timestamp);

        unset ($dateDiff['month']);

        $dateDiff['week'] = floor($dateDiff['days_total'] / 7);
        $dateDiff['day']  = $dateDiff['days_total'] % 7;

        return $dateDiff;
    }
public static function elapsedTime($timestamp)
    {
        // @todo: deprecated - use timeDiff instead of this

        $dateDiff = self::timeDiff($timestamp);

        unset ($dateDiff['month']);

        $dateDiff['week'] = floor($dateDiff['days_total'] / 7);
        $dateDiff['day']  = $dateDiff['days_total'] % 7;

        return $dateDiff;
    }
public static function elapsedTime ( $ timestamp ) { // @todo: deprecated - use timeDiff instead of this $ dateDiff = self :: timeDiff ( $ timestamp ) ; unset ( $ dateDiff [ 'month' ] ) ; $ dateDiff [ 'week' ] = floor ( $ dateDiff [ 'days_total' ] / 7 ) ; $ dateDiff [ 'day' ] = $ dateDiff [ 'days_total' ] % 7 ; return $ dateDiff ; }
Calculate time period and return it in separated time segments

@param int $timestamp timestamp for data in past you want to calculate elapsed period
@return array
Calculate time period and return it in separated time segments