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