DateTimeItemInterface.php

Same filename and directory in other branches
  1. 9 core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItemInterface.php
  2. 8.9.x core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItemInterface.php
  3. 10 core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItemInterface.php

Namespace

Drupal\datetime\Plugin\Field\FieldType

File

core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItemInterface.php

View source
<?php

namespace Drupal\datetime\Plugin\Field\FieldType;


/**
 * Interface definition for Datetime items.
 */
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';

}

Interfaces

Title Deprecated Summary
DateTimeItemInterface Interface definition for Datetime items.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.