@@ 328-344 (lines=17) @@ | ||
325 | * |
|
326 | * @return $object |
|
327 | */ |
|
328 | public function from($calendar) |
|
329 | { |
|
330 | ||
331 | $this->convert = new Convert($this->date_time); |
|
332 | ||
333 | $this->date_time = $this->convert->from($calendar); |
|
334 | ||
335 | ||
336 | /** |
|
337 | * We need this part for DayOf class |
|
338 | */ |
|
339 | $this->calendar_type = $calendar; |
|
340 | ||
341 | $this->translate_to = $calendar; |
|
342 | ||
343 | return $this; |
|
344 | ||
345 | } |
|
346 | ||
347 | /** |
|
@@ 354-369 (lines=16) @@ | ||
351 | * |
|
352 | * @return object |
|
353 | */ |
|
354 | public function to($calendar) |
|
355 | { |
|
356 | ||
357 | $this->convert = new Convert($this->date_time); |
|
358 | ||
359 | $this->date_time = $this->convert->to($calendar); |
|
360 | ||
361 | /** |
|
362 | * We need this part for DayOf class |
|
363 | */ |
|
364 | $this->calendar_type = $calendar; |
|
365 | ||
366 | $this->translate_to = $calendar; |
|
367 | ||
368 | return $this; |
|
369 | ||
370 | } |
|
371 | ||
372 | /** |