|
@@ 211-226 (lines=16) @@
|
| 208 |
|
/** |
| 209 |
|
* Convert from current calendar, what type is current calendar? |
| 210 |
|
*/ |
| 211 |
|
public function from( $calendar ) { |
| 212 |
|
|
| 213 |
|
$this->convert = new Convert( $this->date_time ); |
| 214 |
|
|
| 215 |
|
$this->date_time = $this->convert->from( $calendar ); |
| 216 |
|
|
| 217 |
|
|
| 218 |
|
/** |
| 219 |
|
* We need this part for DayOf class |
| 220 |
|
*/ |
| 221 |
|
$this->calendar_type = $calendar; |
| 222 |
|
|
| 223 |
|
$this->translate_to = $calendar; |
| 224 |
|
|
| 225 |
|
return $this; |
| 226 |
|
|
| 227 |
|
} |
| 228 |
|
|
| 229 |
|
public function to( $calendar ) { |
|
@@ 229-244 (lines=16) @@
|
| 226 |
|
|
| 227 |
|
} |
| 228 |
|
|
| 229 |
|
public function to( $calendar ) { |
| 230 |
|
|
| 231 |
|
$this->convert = new Convert( $this->date_time ); |
| 232 |
|
|
| 233 |
|
$this->date_time = $this->convert->to( $calendar ); |
| 234 |
|
|
| 235 |
|
/** |
| 236 |
|
* We need this part for DayOf class |
| 237 |
|
*/ |
| 238 |
|
$this->calendar_type = $calendar; |
| 239 |
|
|
| 240 |
|
$this->translate_to = $calendar; |
| 241 |
|
|
| 242 |
|
return $this; |
| 243 |
|
|
| 244 |
|
} |
| 245 |
|
|
| 246 |
|
|
| 247 |
|
/** |