@@ 266-282 (lines=17) @@ | ||
263 | * |
|
264 | * @return $object |
|
265 | */ |
|
266 | public function from($calendar) |
|
267 | { |
|
268 | ||
269 | $this->convert = new Convert($this->date_time); |
|
270 | ||
271 | $this->date_time = $this->convert->from($calendar); |
|
272 | ||
273 | ||
274 | /** |
|
275 | * We need this part for DayOf class |
|
276 | */ |
|
277 | $this->calendar_type = $calendar; |
|
278 | ||
279 | $this->translate_to = $calendar; |
|
280 | ||
281 | return $this; |
|
282 | ||
283 | } |
|
284 | ||
285 | /** |
|
@@ 292-307 (lines=16) @@ | ||
289 | * |
|
290 | * @return object |
|
291 | */ |
|
292 | public function to($calendar) |
|
293 | { |
|
294 | ||
295 | $this->convert = new Convert($this->date_time); |
|
296 | ||
297 | $this->date_time = $this->convert->to($calendar); |
|
298 | ||
299 | /** |
|
300 | * We need this part for DayOf class |
|
301 | */ |
|
302 | $this->calendar_type = $calendar; |
|
303 | ||
304 | $this->translate_to = $calendar; |
|
305 | ||
306 | return $this; |
|
307 | ||
308 | } |
|
309 | ||
310 |