{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.
Attribute NameTypeRequiredDefaultDescriptionprefixstringNoTime_what to prefix the var name withtimetimestampNocurrent timewhat date/time to usedisplay_hoursbooleanNotruewhether or not to display hoursdisplay_minutesbooleanNotruewhether or not to display minutesdisplay_secondsbooleanNotruewhether or not to display secondsdisplay_meridianbooleanNotruewhether or not to display meridian (am/pm)use_24_hoursbooleanNotruewhether 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
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().
{html_select_time}
This will output:
]]>
See also
$smarty.now,
{html_select_date}
and date tips.