class TimeField(**kwargs) [source]
- Default widget:
TextInput - Empty value:
None - Normalizes to: A Python
datetime.timeobject. - Validates that the given value is either a
datetime.timeor string formatted in a particular time format. - Error message keys:
required,invalid
Takes one optional argument:
-
input_formats -
A list of formats used to attempt to convert a string to a valid
datetime.timeobject.
If no input_formats argument is provided, the default input formats are:
'%H:%M:%S', # '14:30:59' '%H:%M', # '14:30'
Please login to continue.