| @@ 274-290 (lines=17) @@ | ||
| 271 | * |
|
| 272 | * @return $object |
|
| 273 | */ |
|
| 274 | public function from($calendar) |
|
| 275 | { |
|
| 276 | ||
| 277 | $this->convert = new Convert($this->date_time); |
|
| 278 | ||
| 279 | $this->date_time = $this->convert->from($calendar); |
|
| 280 | ||
| 281 | ||
| 282 | /** |
|
| 283 | * We need this part for DayOf class |
|
| 284 | */ |
|
| 285 | $this->calendar_type = $calendar; |
|
| 286 | ||
| 287 | $this->translate_to = $calendar; |
|
| 288 | ||
| 289 | return $this; |
|
| 290 | ||
| 291 | } |
|
| 292 | ||
| 293 | /** |
|
| @@ 300-315 (lines=16) @@ | ||
| 297 | * |
|
| 298 | * @return object |
|
| 299 | */ |
|
| 300 | public function to($calendar) |
|
| 301 | { |
|
| 302 | ||
| 303 | $this->convert = new Convert($this->date_time); |
|
| 304 | ||
| 305 | $this->date_time = $this->convert->to($calendar); |
|
| 306 | ||
| 307 | /** |
|
| 308 | * We need this part for DayOf class |
|
| 309 | */ |
|
| 310 | $this->calendar_type = $calendar; |
|
| 311 | ||
| 312 | $this->translate_to = $calendar; |
|
| 313 | ||
| 314 | return $this; |
|
| 315 | ||
| 316 | } |
|
| 317 | ||
| 318 | /** |
|