Search for d

  1. Search 7.x for d
  2. Search 9.5.x for d
  3. Search 8.9.x for d
  4. Search 11.x for d
  5. Other projects
Title Object type File name Summary
DateFormatterInterface::format function core/lib/Drupal/Core/Datetime/DateFormatterInterface.php Formats a date, using a date type or a custom date format string.
DateFormatterInterface::formatDiff function core/lib/Drupal/Core/Datetime/DateFormatterInterface.php Formats a time interval between two timestamps.
DateFormatterInterface::formatInterval function core/lib/Drupal/Core/Datetime/DateFormatterInterface.php Formats a time interval with the requested granularity.
DateFormatterInterface::formatTimeDiffSince function core/lib/Drupal/Core/Datetime/DateFormatterInterface.php Formats the time difference from a timestamp to the current request time.
DateFormatterInterface::formatTimeDiffUntil function core/lib/Drupal/Core/Datetime/DateFormatterInterface.php Formats the time difference from the current request time to a timestamp.
DateFormatterInterface::getSampleDateFormats function core/lib/Drupal/Core/Datetime/DateFormatterInterface.php Provides values for all date formatting characters for a given timestamp.
DateFormatTest class core/modules/jsonapi/tests/src/Functional/DateFormatTest.php JSON:API integration test for the "DateFormat" config entity type.
DateFormatTest.php file core/modules/jsonapi/tests/src/Functional/DateFormatTest.php
DateFormatTest::$anonymousUsersCanViewLabels property core/modules/jsonapi/tests/src/Functional/DateFormatTest.php
DateFormatTest::$defaultTheme property core/modules/jsonapi/tests/src/Functional/DateFormatTest.php
DateFormatTest::$entity property core/modules/jsonapi/tests/src/Functional/DateFormatTest.php
DateFormatTest::$entityTypeId property core/modules/jsonapi/tests/src/Functional/DateFormatTest.php
DateFormatTest::$modules property core/modules/jsonapi/tests/src/Functional/DateFormatTest.php
DateFormatTest::$resourceTypeName property core/modules/jsonapi/tests/src/Functional/DateFormatTest.php
DateFormatTest::createEntity function core/modules/jsonapi/tests/src/Functional/DateFormatTest.php
DateFormatTest::getExpectedDocument function core/modules/jsonapi/tests/src/Functional/DateFormatTest.php
DateFormatTest::getPostDocument function core/modules/jsonapi/tests/src/Functional/DateFormatTest.php
DateFormatTest::setUpAuthorization function core/modules/jsonapi/tests/src/Functional/DateFormatTest.php
DateHelper class core/lib/Drupal/Core/Datetime/DateHelper.php Defines Gregorian Calendar date values.
DateHelper.php file core/lib/Drupal/Core/Datetime/DateHelper.php
DateHelper::ampm function core/lib/Drupal/Core/Datetime/DateHelper.php Constructs an array of AM and PM options.
DateHelper::dayOfWeek function core/lib/Drupal/Core/Datetime/DateHelper.php Returns day of week for a given date (0 = Sunday).
DateHelper::dayOfWeekName function core/lib/Drupal/Core/Datetime/DateHelper.php Returns translated name of the day of week for a given date.
DateHelper::days function core/lib/Drupal/Core/Datetime/DateHelper.php Constructs an array of days in a month.
DateHelper::daysInMonth function core/lib/Drupal/Core/Datetime/DateHelper.php Identifies the number of days in a month for a date.
DateHelper::daysInYear function core/lib/Drupal/Core/Datetime/DateHelper.php Identifies the number of days in a year for a date.
DateHelper::hours function core/lib/Drupal/Core/Datetime/DateHelper.php Constructs an array of hours.
DateHelper::minutes function core/lib/Drupal/Core/Datetime/DateHelper.php Constructs an array of minutes.
DateHelper::monthNames function core/lib/Drupal/Core/Datetime/DateHelper.php Returns a translated array of month names.
DateHelper::monthNamesAbbr function core/lib/Drupal/Core/Datetime/DateHelper.php Constructs a translated array of month name abbreviations.
DateHelper::monthNamesAbbrUntranslated function core/lib/Drupal/Core/Datetime/DateHelper.php Constructs an untranslated array of abbreviated month names.
DateHelper::monthNamesUntranslated function core/lib/Drupal/Core/Datetime/DateHelper.php Constructs an untranslated array of month names.
DateHelper::seconds function core/lib/Drupal/Core/Datetime/DateHelper.php Constructs an array of seconds.
DateHelper::weekDays function core/lib/Drupal/Core/Datetime/DateHelper.php Returns a translated array of week names.
DateHelper::weekDaysAbbr function core/lib/Drupal/Core/Datetime/DateHelper.php Constructs a translated array of week day abbreviations.
DateHelper::weekDaysAbbr1 function core/lib/Drupal/Core/Datetime/DateHelper.php Constructs a translated array of 1-letter week day abbreviations.
DateHelper::weekDaysAbbr2 function core/lib/Drupal/Core/Datetime/DateHelper.php Constructs a translated array of 2-letter week day abbreviations.
DateHelper::weekDaysOrdered function core/lib/Drupal/Core/Datetime/DateHelper.php Reorders weekdays to match the first day of the week.
DateHelper::weekDaysUntranslated function core/lib/Drupal/Core/Datetime/DateHelper.php Constructs an untranslated array of week days.
DateHelper::years function core/lib/Drupal/Core/Datetime/DateHelper.php Constructs an array of years in a specified range.
Datelist class core/lib/Drupal/Core/Datetime/Element/Datelist.php Provides a datelist element.
Datelist.php file core/lib/Drupal/Core/Datetime/Element/Datelist.php
Datelist::checkEmptyInputs function core/lib/Drupal/Core/Datetime/Element/Datelist.php Checks the input array for empty values.
Datelist::getInfo function core/lib/Drupal/Core/Datetime/Element/Datelist.php
Datelist::incrementRound function core/lib/Drupal/Core/Datetime/Element/Datelist.php Rounds minutes and seconds to nearest requested value.
Datelist::processDatelist function core/lib/Drupal/Core/Datetime/Element/Datelist.php Expands a date element into an array of individual elements.
Datelist::validateDatelist function core/lib/Drupal/Core/Datetime/Element/Datelist.php Validation callback for a datelist element.
Datelist::valueCallback function core/lib/Drupal/Core/Datetime/Element/Datelist.php Validates the date type to adjust 12 hour time and prevent invalid dates.
If the date is valid, the date is set in the form.
DateRangeFormatterSettingsUpdateTest class core/modules/datetime_range/tests/src/Functional/DateRangeFormatterSettingsUpdateTest.php Tests the update path for daterange formatter settings.
DateRangeFormatterSettingsUpdateTest.php file core/modules/datetime_range/tests/src/Functional/DateRangeFormatterSettingsUpdateTest.php

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