Time Field Type¶
This Field Type represents time information.
Date information is not stored.
What is stored is the number of seconds, calculated from the beginning of the day in the given or the environment timezone.
|Name||Internal name||Expected input type|
PHP API Field Type¶
If input value is of type
integer, it will be passed directly to the PHP's built-in
\DateTime class constructor, therefore the same input format expectations apply.
It is also possible to directly pass an instance of
The Value class of this Field Type contains the following properties:
||Holds the time information as a number of seconds since the beginning of the day.|
The constructor for this Value object will initialize a new Value object with the value provided. It accepts an integer representing the number of seconds since the beginning of the day.
String representation of the date value will generate the date string in the format "H:i:s" as accepted by PHP's built-in
|H||Two digit representation of an hour, 24-hour format, range 00 to 23||12|
|i||Two digit representation of minutes, range 00 to 59||14|
|s||Two digit representation of seconds, range 00 to 59||56|
Value in hash format is an integer representing a number of seconds since the beginning of the day.
This Field Type does not perform validation of the input value.
The Field definition of this Field Type can be configured with several options:
||Used to control displaying of seconds in the output.|
||The constant used here defines default input value when using back-end interface.|
1 2 3 4 5 6
The template called by the
ez_render_field() Twig function while rendering a Date Field has access to the following parameters:
||n/a||Internal parameter set by the system based on current request locale or, if not set, calculated based on the language of the Field.|