Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / datetime / src / Plugin / Field / FieldType / DateTimeItemInterface.php
diff --git a/web/core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItemInterface.php b/web/core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItemInterface.php
new file mode 100644 (file)
index 0000000..a9231c6
--- /dev/null
@@ -0,0 +1,25 @@
+<?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';
+
+}