本文整理汇总了PHP中DateHelper::formatHours方法的典型用法代码示例。如果您正苦于以下问题:PHP DateHelper::formatHours方法的具体用法?PHP DateHelper::formatHours怎么用?PHP DateHelper::formatHours使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DateHelper
的用法示例。
在下文中一共展示了DateHelper::formatHours方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
?>
</td>
<td><?php
echo $this->dest_list[$item->destfrom]->title;
?>
</td>
<td><?php
echo $this->dest_list[$item->destto]->title;
?>
</td>
<td><?php
echo JFactory::getDate($item->start)->format($php_format);
?>
</td>
<td><?php
echo DateHelper::formatHours($item->pickup);
?>
</td>
<td><?php
echo $item->order_number;
?>
</td>
<td><?php
echo TransportHelper::getTransprortType($item->transport_type);
?>
</td>
</tr>
<?php
}
?>
</tbody>
示例2:
<td class="tdtitleorder"><?php
echo JText::_('COM_BOOKPRO_TOUR_DEPART_DATE');
?>
</td>
<td class="tdorder"><?php
echo DateHelper::toLongDate($displayData->start);
?>
</td>
</tr>
<tr>
<td class="tdtitleorder"><?php
echo JText::_('COM_BOOKPRO_TOUR_START_TIME');
?>
</td>
<td class="tdorder"><?php
echo DateHelper::formatHours($displayData->start_time);
?>
</td>
</tr>
<tr>
<td class="tdtitleorder"><?php
echo JText::_('COM_BOOKPRO_TOUR_END_TIME');
?>
</td>
<td class="tdorder"><?php
echo DateHelper::formatHours($displayData->return_time);
?>
</td>
</tr>
</table>
示例3: stdClass
?>
<tr start="<?php
echo $row->start;
?>
">
<td><?php
echo $row->code;
?>
</td>
<td><?php
echo DateHelper::formatHours($row->start_time);
?>
</td>
<td><?php
echo DateHelper::formatHours($row->return_time);
?>
</td>
<td><?php
echo $row->duration;
?>
</td>
<?php
$data = new stdClass();
$data->rates = $row->rates;
$data->tour = $row;
$layout = new JLayoutFile('rates', $basePath = JPATH_ROOT . '/components/com_bookpro/layouts');
$html = $layout->render($data);
echo $html;
?>
示例4:
</td>
<td>
<?php
echo JText::_('COM_BOOKPRO_TRANSPORT_DURATION');
?>
<br/>
<small><?php
echo MathHelper::getDuration($trip->duration);
?>
</small>
</td>
</tr>
</table>
<?php
if (isset($displayData->showTime)) {
echo JText::_('COM_BOOKPRO_TRANSPORT_FLIGHT_TIME') . ': ' . DateHelper::formatHours($trip->flight_time);
echo '<br>' . JText::_('COM_BOOKPRO_FLIGHT_NUMBER') . ': ' . $trip->flight_number;
}
?>
<br>
<!--<?php
if ($type == 1) {
?>
<?php
// $price = json_decode($trip->private_price);
// $wait_time = TransportHelper::getPaxGroup($total_pass, $price);
// $wait_time = TransportHelper::caculatePriceWithRate($wait_time, $type, $trip->date, $trip->pickup, $trip->rate_params);
// echo JText::sprintf('COM_BOOKPRO_WAITING_TIME_PER_HOUR_TXT',CurrencyHelper::displayPrice($wait_time->wait));
?>
<?php
}