Horde_Core_Ui_VarRenderer_Html::_renderVarDisplay_hourminutesecond PHP Method

_renderVarDisplay_hourminutesecond() protected method

protected _renderVarDisplay_hourminutesecond ( $form, &$var, &$vars )
    protected function _renderVarDisplay_hourminutesecond($form, &$var, &$vars)
    {
        /*
          <label id="kronolithEventStartTimeLabel">
            <?php echo _("at") ?>
            <input type="text" name="start_time" id="kronolithEventStartTime" size="8" />
          </label>
        */
        $time = $var->type->getTimeParts($var->getValue($vars));
        if (!$var->type->getProperty('show_seconds')) {
            return (int) $time['hour'] . ':' . sprintf('%02d', (int) $time['minute']);
        } else {
            return (int) $time['hour'] . ':' . sprintf('%02d', (int) $time['minute']) . ':' . sprintf('%02d', (int) $time['second']);
        }
    }
Horde_Core_Ui_VarRenderer_Html