private function createHourFlydown()
    {
        $flydown = new SwatFlydown($this->id . '_hour');
        $flydown->classes = array('swat-time-entry-hour');

        if ($this->twelve_hour) {
            for ($i = 1; $i <= 12; $i++) {
                $flydown->addOption($i, $i);
            }
        } else {
            for ($i = 0; $i < 24; $i++) {
                $flydown->addOption($i, $i);
            }
        }

        return $flydown;
    }