{html_select_time}{html_select_time} is a
custom function
that creates time dropdowns for you.
It can display any or all of hour, minute, second and meridian.
The time attribute can have different formats.
It can be a unique timestamp, a string of the format
YYYYMMDDHHMMSS or a string that is parseable by PHP's
strtotime().
Attribute NameTypeRequiredDefaultDescriptionprefixstringNoTime_What to prefix the var name withtimetimestampNocurrent timeWhat date/time to usedisplay_hoursbooleanNo&true;Whether or not to display hoursdisplay_minutesbooleanNo&true;Whether or not to display minutesdisplay_secondsbooleanNo&true;Whether or not to display secondsdisplay_meridianbooleanNo&true;Whether or not to display meridian (am/pm)use_24_hoursbooleanNo&true;Whether or not to use 24 hour clockminute_intervalintegerNo1Number interval in minute dropdownsecond_intervalintegerNo1Number interval in second dropdownfield_arraystringNon/aOutputs values to array of this nameall_extrastringNonullAdds extra attributes to select/input tags if givenhour_extrastringNonullAdds extra attributes to select/input tags if
givenminute_extrastringNonullAdds extra attributes to select/input tags if
givensecond_extrastringNonullAdds extra attributes to select/input tags if
givenmeridian_extrastringNonullAdds extra attributes to select/input tags if
given{html_select_time}
At 9:20 and 23 seconds in the morning the template above would output:
... snipped ....
... snipped ....
]]>
See also
$smarty.now,
{html_select_date}
and the date tips page.