- Timestamp:
- 05/18/08 11:50:58 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/php/Date_Holidays_Driver_Japanese/src/Date/Holidays/Driver/Japanese.php
r11402 r11857 239 239 $day = null; 240 240 if ($this->_year >= 1948 && $this->_year <= 1979) { 241 $day = floor(DATE_HOLIDAYS_VERNAL_EQUINOX_PARAM_1979 + DATE_HOLIDAYS_EQUINOX_GRADIENT * ($this->_year - 1980) - floor(($this->_year - 1980) / 4)); 241 $day = floor(DATE_HOLIDAYS_VERNAL_EQUINOX_PARAM_1979 + 242 DATE_HOLIDAYS_EQUINOX_GRADIENT * 243 ($this->_year - 1980) - 244 floor(($this->_year - 1980) / 4)); 242 245 } else if ($this->_year <= 2099) { 243 $day = floor(DATE_HOLIDAYS_VERNAL_EQUINOX_PARAM_2099 + DATE_HOLIDAYS_EQUINOX_GRADIENT * ($this->_year - 1980) - floor(($this->_year - 1980) / 4)); 246 $day = floor(DATE_HOLIDAYS_VERNAL_EQUINOX_PARAM_2099 + 247 DATE_HOLIDAYS_EQUINOX_GRADIENT * 248 ($this->_year - 1980) - 249 floor(($this->_year - 1980) / 4)); 244 250 } else if ($this->_year <= 2150) { 245 $day = floor(DATE_HOLIDAYS_VERNAL_EQUINOX_PARAM_2150 + DATE_HOLIDAYS_EQUINOX_GRADIENT * ($this->_year - 1980) - floor(($this->_year - 1980) / 4)); 251 $day = floor(DATE_HOLIDAYS_VERNAL_EQUINOX_PARAM_2150 + 252 DATE_HOLIDAYS_EQUINOX_GRADIENT * 253 ($this->_year - 1980) - 254 floor(($this->_year - 1980) / 4)); 246 255 } 247 256 if (!is_null($day)) { … … 406 415 if ($this->_year >= 1948 && $this->_year <= 1979) { 407 416 $day = floor(DATE_HOLIDAYS_AUTUMNAL_EQUINOX_PARAM_1979 + 408 DATE_HOLIDAYS_EQUINOX_GRADIENT * ($this->_year - 1980) - 417 DATE_HOLIDAYS_EQUINOX_GRADIENT * 418 ($this->_year - 1980) - 409 419 floor(($this->_year - 1980) / 4)); 410 420 } else if ($this->_year <= 2099) { 411 421 $day = floor(DATE_HOLIDAYS_AUTUMNAL_EQUINOX_PARAM_2099 + 412 DATE_HOLIDAYS_EQUINOX_GRADIENT * ($this->_year - 1980) - 422 DATE_HOLIDAYS_EQUINOX_GRADIENT * 423 ($this->_year - 1980) - 413 424 floor(($this->_year - 1980) / 4)); 414 425 } else if ($this->_year <= 2150) { 415 426 $day = floor(DATE_HOLIDAYS_AUTUMNAL_EQUINOX_PARAM_2150 + 416 DATE_HOLIDAYS_EQUINOX_GRADIENT * ($this->_year - 1980) - 427 DATE_HOLIDAYS_EQUINOX_GRADIENT * 428 ($this->_year - 1980) - 417 429 floor(($this->_year - 1980) / 4)); 418 430 } … … 425 437 $this->getHolidayDate('autumnalEquinoxDay')->getDayOfWeek() == 3) { 426 438 $this->_addHoliday('nationalHolidayBeforeAutumnalEquinoxDay', 427 $this->getHolidayDate('autumnalEquinoxDay')->getPrevDay(),428 'National Holiday before Autumnal Equinox Day');439 $this->getHolidayDate('autumnalEquinoxDay')->getPrevDay(), 440 'National Holiday before Autumnal Equinox Day'); 429 441 } 430 442 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)