original_string: public static function easterDate($year)
      {
          if ($year < 1970 || $year > 2037) {
              return trigger_error('This function is only valid for years between 1970 and 2037 inclusive', E_USER_WARNING);
          }
  
          $days = self::$gregorian_calendar->easterDays($year);
  
          // Calculate time-zone offset
          $date_time      = new \DateTime('now', new \DateTimeZone(date_default_timezone_get()));
          $offset_seconds = (int) $date_time->format('Z');
  
          if ($days < 11) {
              return self::jdtounix(self::$gregorian_calendar->ymdToJd($year, 3, $days + 21)) - $offset_seconds;
          } else {
              return self::jdtounix(self::$gregorian_calendar->ymdToJd($year, 4, $days - 10)) - $offset_seconds;
          }
      }
code: public static function easterDate($year)
      {
          if ($year < 1970 || $year > 2037) {
              return trigger_error('This function is only valid for years between 1970 and 2037 inclusive', E_USER_WARNING);
          }
  
          $days = self::$gregorian_calendar->easterDays($year);
  
          // Calculate time-zone offset
          $date_time      = new \DateTime('now', new \DateTimeZone(date_default_timezone_get()));
          $offset_seconds = (int) $date_time->format('Z');
  
          if ($days < 11) {
              return self::jdtounix(self::$gregorian_calendar->ymdToJd($year, 3, $days + 21)) - $offset_seconds;
          } else {
              return self::jdtounix(self::$gregorian_calendar->ymdToJd($year, 4, $days - 10)) - $offset_seconds;
          }
      }
code_tokens: public static function easterDate ( $ year ) { if ( $ year < 1970 || $ year > 2037 ) { return trigger_error ( 'This function is only valid for years between 1970 and 2037 inclusive' , E_USER_WARNING ) ; } $ days = self :: $ gregorian_calendar -> easterDays ( $ year ) ; // Calculate time-zone offset $ date_time = new \ DateTime ( 'now' , new \ DateTimeZone ( date_default_timezone_get ( ) ) ) ; $ offset_seconds = ( int ) $ date_time -> format ( 'Z' ) ; if ( $ days < 11 ) { return self :: jdtounix ( self :: $ gregorian_calendar -> ymdToJd ( $ year , 3 , $ days + 21 ) ) - $ offset_seconds ; } else { return self :: jdtounix ( self :: $ gregorian_calendar -> ymdToJd ( $ year , 4 , $ days - 10 ) ) - $ offset_seconds ; } }
docstring: Get Unix timestamp for midnight on Easter of a given year.
  
  Shim implementation of easter_date()
  
  @link https://php.net/easter_date
  
  @param int $year
  
  @return int|bool
docstring_tokens: Get Unix timestamp for midnight on Easter of a given year .