|
@@ 459-463 (lines=5) @@
|
| 456 |
|
|
| 457 |
|
if ($between < 86400 and idate('d', $from) === idate('d', $now)) { |
| 458 |
|
if ($between < 3600 and idate('H', $from) === idate('H', $now)) { |
| 459 |
|
if ($between < 60 and idate('i', $from) === idate('i', $now)) { |
| 460 |
|
$second = idate('s', $now) - idate('s', $from); |
| 461 |
|
|
| 462 |
|
return sprintf(_n('%d', '%d', $second), $second); |
| 463 |
|
} |
| 464 |
|
|
| 465 |
|
$min = idate('i', $now) - idate('i', $from); |
| 466 |
|
|
|
@@ 479-483 (lines=5) @@
|
| 476 |
|
return _t('.. %s', date('H:i', $from)); |
| 477 |
|
} |
| 478 |
|
|
| 479 |
|
if ($between < 604800 and idate('W', $from) === idate('W', $now)) { |
| 480 |
|
$day = intval($between / (3600 * 24)); |
| 481 |
|
|
| 482 |
|
return sprintf(_n('...', '...', $day), $day); |
| 483 |
|
} |
| 484 |
|
|
| 485 |
|
if ($between < 31622400 and idate('Y', $from) === idate('Y', $now)) { |
| 486 |
|
return date(_t('...'), $from); |