HeaderPane
Main
Hide
Share Link
Print

Time List and Clock

The dropdown of a field showing a time offers the time in one of two styles, defined by SftDate_SetTimeDropDownStyle.

Time List (SFTDATE_TIMESTYLE_LIST, default)Clock (SFTDATE_TIMESTYLE_CLOCK)

Time List

The time list offers the times of the day at the interval defined by SftDate_SetTimeInterval, in minutes from 1 to 720 (30 by default). The field's time is selected when it is one of the listed times. A click or the Space key chooses a time, and the Enter key accepts the selected time. The scroll bar and the mouse wheel scroll the list, and the Up and Down keys, Page Up, Page Down, Home and End move in it.

Clock

The clock face is used in steps: the user picks the hour first, then the minutes, and then the seconds if the format shows seconds. Clicking a number on the face sets that part and moves to the next step; in the last step, it chooses the time. In a 24-hour format, the hours 13 to 23 and 0 are on an inner ring. The numbers at the top of the dropdown show the parts of the time and switch between the steps when clicked, and in a 12-hour format the AM and PM buttons below the face switch between the morning and the afternoon while the hour is picked. The Up and Right keys move to the next value of the current step and the Down and Left keys to the previous one, the Space key moves to the next step (in the last step it chooses the time) and the Enter key accepts the time.

Whether the clock shows 12 or 24 hours follows the field's format, or the culture's short time pattern for a format without an hour.

Limits

Times outside the limits of the field (SftDate_SetMinDate, SftDate_SetMaxDate) cannot be chosen; for a date and time, the limits apply on the first and the last day. With a calendar and a time selection in the dropdown (see The Dropdown), the time selection follows the date selected in the calendar.


Last Updated 11/26/2026 - (email)
© 2026 Softel vdm, Inc.