class TimeField(**kwargs)
[source]
- Default widget:
TextInput
- Empty value:
None
- Normalizes to: A Python
datetime.time
object. - Validates that the given value is either a
datetime.time
or 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.time
object.
If no input_formats
argument is provided, the default input formats are:
1 2 | '%H:%M:%S' , # '14:30:59' '%H:%M' , # '14:30' |
Please login to continue.