src/Utility/Time.php
public static function cWeekEnding($year, $cWeek = 0) {
		if ($cWeek < 1 || $cWeek >= static::cWeeks($year)) {
			return static::cWeekBeginning($year + 1) - 1;
		}
		return static::cWeekBeginning($year, $cWeek + 1) - 1;
	}
public static function cWeekEnding($year, $cWeek = 0) {
		if ($cWeek < 1 || $cWeek >= static::cWeeks($year)) {
			return static::cWeekBeginning($year + 1) - 1;
		}
		return static::cWeekBeginning($year, $cWeek + 1) - 1;
	}
public static function cWeekEnding ( $ year , $ cWeek = 0 ) { if ( $ cWeek < 1 || $ cWeek >= static :: cWeeks ( $ year ) ) { return static :: cWeekBeginning ( $ year + 1 ) - 1 ; } return static :: cWeekBeginning ( $ year , $ cWeek + 1 ) - 1 ; }
Calculate the ending of a calenderweek
if no cweek is given get the ending of the last week of the year

@param int $year (format xxxx)
@param int $cWeek (optional, defaults to last, range 1...52/53)
@return int Timestamp
Calculate the ending of a calenderweek if no cweek is given get the ending of the last week of the year