private static function hebrewYearStart( $year ) {
		$a = intval( ( 12 * ( $year - 1 ) + 17 ) % 19 );
		$b = intval( ( $year - 1 ) % 4 );
		$m = 32.044093161144 + 1.5542417966212 * $a +  $b / 4.0 - 0.0031777940220923 * ( $year - 1 );
		if ( $m < 0 ) {
			$m--;
		}
		$Mar = intval( $m );
		if ( $m < 0 ) {
			$m++;
		}
		$m -= $Mar;

		$c = intval( ( $Mar + 3 * ( $year - 1 ) + 5 * $b + 5 ) % 7 );
		if ( $c == 0 && $a > 11 && $m >= 0.89772376543210 ) {
			$Mar++;
		} elseif ( $c == 1 && $a > 6 && $m >= 0.63287037037037 ) {
			$Mar += 2;
		} elseif ( $c == 2 || $c == 4 || $c == 6 ) {
			$Mar++;
		}

		$Mar += intval( ( $year - 3761 ) / 100 ) - intval( ( $year - 3761 ) / 400 ) - 24;
		return $Mar;
	}
private static function hebrewYearStart( $year ) {
		$a = intval( ( 12 * ( $year - 1 ) + 17 ) % 19 );
		$b = intval( ( $year - 1 ) % 4 );
		$m = 32.044093161144 + 1.5542417966212 * $a +  $b / 4.0 - 0.0031777940220923 * ( $year - 1 );
		if ( $m < 0 ) {
			$m--;
		}
		$Mar = intval( $m );
		if ( $m < 0 ) {
			$m++;
		}
		$m -= $Mar;

		$c = intval( ( $Mar + 3 * ( $year - 1 ) + 5 * $b + 5 ) % 7 );
		if ( $c == 0 && $a > 11 && $m >= 0.89772376543210 ) {
			$Mar++;
		} elseif ( $c == 1 && $a > 6 && $m >= 0.63287037037037 ) {
			$Mar += 2;
		} elseif ( $c == 2 || $c == 4 || $c == 6 ) {
			$Mar++;
		}

		$Mar += intval( ( $year - 3761 ) / 100 ) - intval( ( $year - 3761 ) / 400 ) - 24;
		return $Mar;
	}
private static function hebrewYearStart ( $ year ) { $ a = intval ( ( 12 * ( $ year - 1 ) + 17 ) % 19 ) ; $ b = intval ( ( $ year - 1 ) % 4 ) ; $ m = 32.044093161144 + 1.5542417966212 * $ a + $ b / 4.0 - 0.0031777940220923 * ( $ year - 1 ) ; if ( $ m < 0 ) { $ m -- ; } $ Mar = intval ( $ m ) ; if ( $ m < 0 ) { $ m ++ ; } $ m -= $ Mar ; $ c = intval ( ( $ Mar + 3 * ( $ year - 1 ) + 5 * $ b + 5 ) % 7 ) ; if ( $ c == 0 && $ a > 11 && $ m >= 0.89772376543210 ) { $ Mar ++ ; } elseif ( $ c == 1 && $ a > 6 && $ m >= 0.63287037037037 ) { $ Mar += 2 ; } elseif ( $ c == 2 || $ c == 4 || $ c == 6 ) { $ Mar ++ ; } $ Mar += intval ( ( $ year - 3761 ) / 100 ) - intval ( ( $ year - 3761 ) / 400 ) - 24 ; return $ Mar ; }
This calculates the Hebrew year start, as days since 1 September.
Based on Carl Friedrich Gauss algorithm for finding Easter date.
Used for Hebrew date.

@param $year int

@return string
This calculates the Hebrew year start as days since 1 September . Based on Carl Friedrich Gauss algorithm for finding Easter date . Used for Hebrew date .