code: private function formatS(&$str) {
      if (strstr($str, '%S'))
        $str = str_replace('%S', static::ordinal($this->day), $str);
    }
docs: English ordinal suffix for the day of the month, 2 characters
  @param type $str