Hello,

If you need to build a dropdown with time values, where minutes always increase by some step and do not reset on each new hour, then here is a solution.
00:00 | 00:09 | 00:18 | 00:27 | 00:36 | 00:45 | 00:54 | 01:03 | 01:12 | 01:21 | ..... | 23:42 | 23:51 |


A function below prints increasing time options to achieve above without manual typing (programmatically in a more easy way):
Code: Select all
<cms:func 'time_options_incr' minute_steps='17' >
   
    <cms:set v_step_mod     = "<cms:mod '1440' minute_steps />"  />
    <cms:set v_step_count   = "<cms:div "<cms:sub '1440' v_step_mod />" minute_steps />"  /><cms:ignore>
            // "v_step_count" is how many steps to perform: '17' fit N times within a day '60 * 24' (min * hrs)
    </cms:ignore>
   
   
    <cms:if v_step_mod>
        <cms:incr v_step_count /><cms:ignore>
            // if '60 * 24' (min * hrs) dividable without trail then ok
            // otherwise add a step
        </cms:ignore>
    </cms:if>

   
    <cms:repeat count = v_step_count startcount='0'><cms:ignore>
            // repeat "v_step_count" times to fill the day
            // '00:00:00 +5 hours 17*0 minutes'
            // '00:00:00 +5 hours 17*1 minutes'
            // ...
            // '00:00:00 +5 hours 17*85 minutes'
        </cms:ignore>
        <cms:date date="00:00:00 +<cms:mul k_count minute_steps /> minutes" format="H:i" /> |
    </cms:repeat>

</cms:func>


Usage is simple - just call the function
Code: Select all
<cms:call 'time_options_incr' minute_steps='9' />



A variant with time options that reset each hour and start over: viewtopic.php?f=8&t=10559&p=30296#p30296
It builds such list as:
00:00 | 00:09 | 00:18 | 00:27 | 00:36 | 00:45 | 00:54 |
01:00 | 01:09 | 01:18 | 01:27 | 01:36 | 01:45 | 01:54 |
02:00 | 02:09 | 02:18 | 02:27 | 02:36 | 02:45 | 02:54 |
...
23:00 | 23:09 | 23:18 | 23:27 | 23:36 | 23:45 | 23:54 |


Whichever variant you choose, it is handy to add function to a snippet and use it in your editable:
Code: Select all
<cms:embed 'functions/date-time/time_options.html' />

<cms:editable name="start_time" label="Time From (24 Hrs)"
    opt_values=" Unspecified | <cms:call 'time_options_incr' minute_steps='9' />"
    type='dropdown'
/>


Regards