| @@ 492-501 (lines=10) @@ | ||
| 489 | * |
|
| 490 | * @return void |
|
| 491 | */ |
|
| 492 | protected function humanDateYesterday($parsedTxt) |
|
| 493 | { |
|
| 494 | $currentClass = get_called_class(); |
|
| 495 | $parsedTxt->date = $currentClass::$humanReadableI18n['yesterday']; |
|
| 496 | $parsedTxt->time = $currentClass::$humanReadableI18n['at'] |
|
| 497 | .' ' |
|
| 498 | .$this->format( |
|
| 499 | $currentClass::$humanReadableFormats['time'] |
|
| 500 | ); |
|
| 501 | } |
|
| 502 | ||
| 503 | /** |
|
| 504 | * Format date to human readable when date is tomorrow |
|
| @@ 510-519 (lines=10) @@ | ||
| 507 | * |
|
| 508 | * @return void |
|
| 509 | */ |
|
| 510 | protected function humanDateTomorrow($parsedTxt) |
|
| 511 | { |
|
| 512 | $currentClass = get_called_class(); |
|
| 513 | $parsedTxt->date = $currentClass::$humanReadableI18n['tomorrow']; |
|
| 514 | $parsedTxt->time = $currentClass::$humanReadableI18n['at'] |
|
| 515 | .' ' |
|
| 516 | .$this->format( |
|
| 517 | $currentClass::$humanReadableFormats['time'] |
|
| 518 | ); |
|
| 519 | } |
|
| 520 | ||
| 521 | /** |
|
| 522 | * Format date to human readable when date is not now, today or yesterday |
|