public static function createFromSapWeek($sapWeek, $timezone = null)
    {
        if (preg_match(static::$sapWeekRegex, $sapWeek, $matches) !== 1) {
            return false;
        }
        $week = sprintf('%sW%s', $matches[1], $matches[2]);
        return new parent($week, $timezone);
    }
public static function createFromSapWeek($sapWeek, $timezone = null)
    {
        if (preg_match(static::$sapWeekRegex, $sapWeek, $matches) !== 1) {
            return false;
        }
        $week = sprintf('%sW%s', $matches[1], $matches[2]);
        return new parent($week, $timezone);
    }
public static function createFromSapWeek ( $ sapWeek , $ timezone = null ) { if ( preg_match ( static :: $ sapWeekRegex , $ sapWeek , $ matches ) !== 1 ) { return false ; } $ week = sprintf ( '%sW%s' , $ matches [ 1 ] , $ matches [ 2 ] ) ; return new parent ( $ week , $ timezone ) ; }
Parse an SAP week string into a new DateTime object.

@param string        $sapWeek  String representing the SAP week.
@param \DateTimeZone $timezone A DateTimeZone object representing the desired
time zone.
@return \DateTime|boolean
@throws \Exception
Parse an SAP week string into a new DateTime object .