This example shows you how to create time field using date module and Field API in Drupal.
Source code viewer
function HOOK_admin_form() { // You need date module to use this field type. '#type' => 'date_text', '#title' => t('Time'), '#date_format' => 'H:i', '#date_increment' => 1, ); return system_settings_form($form); }Programming Language: PHP