本书未发布
字段:时间 Time
文档尚未来得及翻译,欢迎以改进的方式提交译文。
Field Type - Time
Usage
The time
field type should be a TIME type in your database.
'start_time' => array(
'type' => 'time',
'title' => 'Start Time',
'time_format' => 'HH:mm', //optional, will default to this value
)
In the edit form, an admin user will be presented with a jQuery timepicker.
The time_format
option lets you define how the time is displayed. This uses the formatting options from jQuery timepicker.
Filter
The time
field filter comes with a start and end time. This allows you to narrow down the result set to a range, set only a minimum time, or set only a maximum time.
推荐文章: