|
@@ 199-214 (lines=16) @@
|
| 196 |
|
/** |
| 197 |
|
* Convert from current calendar, what type is current calendar? |
| 198 |
|
*/ |
| 199 |
|
public function from( $calendar ) { |
| 200 |
|
|
| 201 |
|
$this->convert = new Convert( $this->date_time ); |
| 202 |
|
|
| 203 |
|
$this->date_time = $this->convert->from( $calendar ); |
| 204 |
|
|
| 205 |
|
/** |
| 206 |
|
* We need this part for DayOf class |
| 207 |
|
*/ |
| 208 |
|
$this->calendar_type = $calendar; |
| 209 |
|
|
| 210 |
|
$this->translate_to = $calendar; |
| 211 |
|
|
| 212 |
|
return $this; |
| 213 |
|
|
| 214 |
|
} |
| 215 |
|
|
| 216 |
|
public function to( $calendar ) { |
| 217 |
|
|
|
@@ 216-231 (lines=16) @@
|
| 213 |
|
|
| 214 |
|
} |
| 215 |
|
|
| 216 |
|
public function to( $calendar ) { |
| 217 |
|
|
| 218 |
|
$this->convert = new Convert( $this->date_time ); |
| 219 |
|
|
| 220 |
|
$this->date_time = $this->convert->to( $calendar ); |
| 221 |
|
|
| 222 |
|
/** |
| 223 |
|
* We need this part for DayOf class |
| 224 |
|
*/ |
| 225 |
|
$this->calendar_type = $calendar; |
| 226 |
|
|
| 227 |
|
$this->translate_to = $calendar; |
| 228 |
|
|
| 229 |
|
return $this; |
| 230 |
|
|
| 231 |
|
} |
| 232 |
|
|
| 233 |
|
|
| 234 |
|
/** |