This field type Field Type represents a time information.
Name | Internal name | Expected input type |
---|---|---|
Time | eztime | mixed |
...
Table of Contents | ||
---|---|---|
|
Description
This FieldType Field Type makes possible to store and retrieve a time information.
Note |
---|
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. |
...
Property | Type | Description |
---|---|---|
$time | integer|null | Holds the the time information as a number of seconds since the beginning of a the day. |
Constructor
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 the day.
String representation
...
Value in hash format is an integer representing a number of seconds since the beginning of a the day.
Example:
36000
Validation
This FieldType Field Type does not perform validation of the input value.
...
The field definition of this FieldType Field Type can be configured with several options:
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
use eZ\Publish\Core\FieldType\Time\Type; $settings = array( "defaultType" => DateAndTime::DEFAULT_EMPTY ); |