|
@@ 4109-4119 (lines=11) @@
|
| 4106 |
|
* @param bool $is_over24 |
| 4107 |
|
* @return string |
| 4108 |
|
*/ |
| 4109 |
|
public function get_middle_dhi($time, $is_over24 = false) |
| 4110 |
|
{ |
| 4111 |
|
$hour_offset = $is_over24 ? 24 : 0; |
| 4112 |
|
|
| 4113 |
|
$hour4disp = $this->use24 ? $this->hour_names_24[date('G', $time) + $hour_offset] : $this->hour_names_12[date('G', $time) + $hour_offset]; |
| 4114 |
|
|
| 4115 |
|
return sprintf(_APCAL_FMT_DHI, $this->date_short_names[date('j', $time)], // D |
| 4116 |
|
$hour4disp, // H |
| 4117 |
|
date(_APCAL_DTFMT_MINUTE, $time) // I |
| 4118 |
|
); |
| 4119 |
|
} |
| 4120 |
|
|
| 4121 |
|
// unixtimestamp���顢���ߤθ����ɽ�����줿 HI ������ |
| 4122 |
|
|
|
@@ 4128-4137 (lines=10) @@
|
| 4125 |
|
* @param bool $is_over24 |
| 4126 |
|
* @return string |
| 4127 |
|
*/ |
| 4128 |
|
public function get_middle_hi($time, $is_over24 = false) |
| 4129 |
|
{ |
| 4130 |
|
$hour_offset = $is_over24 ? 24 : 0; |
| 4131 |
|
|
| 4132 |
|
$hour4disp = $this->use24 ? $this->hour_names_24[date('G', $time) + $hour_offset] : $this->hour_names_12[date('G', $time) + $hour_offset]; |
| 4133 |
|
|
| 4134 |
|
return sprintf(_APCAL_FMT_HI, $hour4disp, // H |
| 4135 |
|
date(_APCAL_DTFMT_MINUTE, $time) // I |
| 4136 |
|
); |
| 4137 |
|
} |
| 4138 |
|
|
| 4139 |
|
// Make <option>s for selecting "HOUR" (default_hour must be 0-23) |
| 4140 |
|
|