General

  eZ Systems Website
  Technical documentation
  Editor documentation

This Documentation contains:
 
Technical documentation:



⚠ WARNING ! This documentation is deprecated !

Please go to the current Technical Documentation

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This field type Field Type represents a time information.

NameInternal nameExpected input type
Timeeztimemixed

...

Table of Contents
minLevel2

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.

...

PropertyTypeDescription
$timeinteger|nullHolds 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
languagephp
titleTime FieldType Field Type example settings
linenumberstrue
use eZ\Publish\Core\FieldType\Time\Type;

$settings = array(
	"defaultType" => DateAndTime::DEFAULT_EMPTY
);