This field type represents a time information.
|Name||Internal name||Expected input type|
Table of contents:
This FieldType makes possible to store and retrieve a time information.
Date information is not stored.
What is stored is number of seconds, calculated from the beginning of the day in the given or the environment timezone.
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 the time information as a number of seconds since the beginning of a 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 a 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
Value in hash format is an integer representing a number of seconds since the beginning of a day.
This FieldType does not perform validation of the input value.
The field definition of this FieldType 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 administration interface.|