Same name and namespace in other branches
  1. 8.9.x core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItemInterface.php \Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface
  2. 9 core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItemInterface.php \Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface

Interface definition for Datetime items.

Hierarchy

Expanded class hierarchy of DateTimeItemInterface

All classes that implement DateTimeItemInterface

13 files declare their use of DateTimeItemInterface
Date.php in core/modules/datetime/src/Plugin/views/filter/Date.php
DateRangeFieldItemList.php in core/modules/datetime_range/src/Plugin/Field/FieldType/DateRangeFieldItemList.php
DateRangeFieldTest.php in core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php
DateRangeWidgetBase.php in core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeWidgetBase.php
DateTimeComputed.php in core/modules/datetime/src/DateTimeComputed.php

... See full list

File

core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItemInterface.php, line 8

Namespace

Drupal\datetime\Plugin\Field\FieldType
View source
interface DateTimeItemInterface {

  /**
   * Defines the timezone that dates should be stored in.
   */
  const STORAGE_TIMEZONE = 'UTC';

  /**
   * Defines the format that date and time should be stored in.
   */
  const DATETIME_STORAGE_FORMAT = 'Y-m-d\\TH:i:s';

  /**
   * Defines the format that dates should be stored in.
   */
  const DATE_STORAGE_FORMAT = 'Y-m-d';

}

Members

Namesort descending Modifiers Type Description Overrides
DateTimeItemInterface::DATETIME_STORAGE_FORMAT constant Defines the format that date and time should be stored in.
DateTimeItemInterface::DATE_STORAGE_FORMAT constant Defines the format that dates should be stored in.
DateTimeItemInterface::STORAGE_TIMEZONE constant Defines the timezone that dates should be stored in.