Search for time

  1. Search 7.x for time
  2. Search 9.5.x for time
  3. Search 8.9.x for time
  4. Search 10.3.x for time
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Time class core/modules/views/src/Plugin/views/cache/Time.php Simple caching of query results for Views displays.
time function core/tests/Drupal/Tests/Component/Datetime/TimeTest.php Shadow time() system call.
Time class core/lib/Drupal/Component/Datetime/Time.php Provides a class for obtaining system time.

All search results

Title Object type File name Summary
TimeZoneAbbreviationRouteTest::testAbbreviationConversion function core/modules/system/tests/src/Functional/Datetime/TimeZoneAbbreviationRouteTest.php Test the AJAX Timezone Callback with invalid inputs.
TimeZoneAbbreviationRouteTest::testSystemTimezone function core/modules/system/tests/src/Functional/Datetime/TimeZoneAbbreviationRouteTest.php Test that the AJAX Timezone Callback can deal with various formats.
TimeZoneCacheContext class core/lib/Drupal/Core/Cache/Context/TimeZoneCacheContext.php Defines the TimeZoneCacheContext service, for "per time zone" caching.
TimeZoneCacheContext.php file core/lib/Drupal/Core/Cache/Context/TimeZoneCacheContext.php
TimeZoneCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/TimeZoneCacheContext.php Gets the cacheability metadata for the context.
TimeZoneCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/TimeZoneCacheContext.php Returns the string representation of the cache context.
TimeZoneCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/TimeZoneCacheContext.php Returns the label of the cache context.
TimezoneController class core/modules/system/src/Controller/TimezoneController.php Provides a callback for finding a time zone identifier.
TimezoneController.php file core/modules/system/src/Controller/TimezoneController.php
TimezoneController::getTimezone function core/modules/system/src/Controller/TimezoneController.php Returns a time zone identifier given a time zone abbreviation.
TimeZoneFormHelper class core/lib/Drupal/Core/Datetime/TimeZoneFormHelper.php Helper class for dealing with timezones.
TimeZoneFormHelper.php file core/lib/Drupal/Core/Datetime/TimeZoneFormHelper.php
TimeZoneFormHelper::getOptionsList function core/lib/Drupal/Core/Datetime/TimeZoneFormHelper.php Generate an array of time zones names.
TimeZoneFormHelper::getOptionsListByRegion function core/lib/Drupal/Core/Datetime/TimeZoneFormHelper.php Generate an array of time zones names grouped by region.
TimeZoneFormHelperTest class core/tests/Drupal/Tests/Core/Datetime/TimeZoneFormHelperTest.php @coversDefaultClass \Drupal\Core\Datetime\TimeZoneFormHelper
@group Datetime
TimeZoneFormHelperTest.php file core/tests/Drupal/Tests/Core/Datetime/TimeZoneFormHelperTest.php
TimeZoneFormHelperTest::setUp function core/tests/Drupal/Tests/Core/Datetime/TimeZoneFormHelperTest.php
TimeZoneFormHelperTest::testGetGroupedList function core/tests/Drupal/Tests/Core/Datetime/TimeZoneFormHelperTest.php @covers ::getOptionsListByRegion
TimeZoneFormHelperTest::testGetList function core/tests/Drupal/Tests/Core/Datetime/TimeZoneFormHelperTest.php @covers ::getOptionsList
@covers ::getOptionsListByRegion
TimeZoneItem class core/modules/user/src/TimeZoneItem.php Defines a custom field item class for the 'timezone' user entity field.
TimeZoneItem.php file core/modules/user/src/TimeZoneItem.php
TimeZoneItem::generateSampleValue function core/modules/user/src/TimeZoneItem.php Generates placeholder field values.
TimeZoneResolver class core/modules/system/src/TimeZoneResolver.php Event handler that resolves time zone based on site and user configuration.
TimeZoneResolver.php file core/modules/system/src/TimeZoneResolver.php
TimeZoneResolver::$configFactory property core/modules/system/src/TimeZoneResolver.php The config.
TimeZoneResolver::$currentUser property core/modules/system/src/TimeZoneResolver.php The current user.
TimeZoneResolver::getSubscribedEvents function core/modules/system/src/TimeZoneResolver.php
TimeZoneResolver::getTimeZone function core/modules/system/src/TimeZoneResolver.php Gets the time zone based on site and user configuration.
TimeZoneResolver::onConfigSave function core/modules/system/src/TimeZoneResolver.php Updates the default time zone when time zone config changes.
TimeZoneResolver::setDefaultTimeZone function core/modules/system/src/TimeZoneResolver.php Sets the default time zone.
TimeZoneResolver::__construct function core/modules/system/src/TimeZoneResolver.php TimeZoneResolver constructor.
TimezoneResolverTest class core/modules/system/tests/src/Kernel/TimezoneResolverTest.php @coversDefaultClass \Drupal\system\TimeZoneResolver
@group system
TimezoneResolverTest.php file core/modules/system/tests/src/Kernel/TimezoneResolverTest.php
TimezoneResolverTest::$modules property core/modules/system/tests/src/Kernel/TimezoneResolverTest.php Modules to install.
TimezoneResolverTest::testGetTimeZone function core/modules/system/tests/src/Kernel/TimezoneResolverTest.php Tests time zone resolution.
TimezoneTest class core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php Tests the timezone handling of datetime and datelist element types.
TimezoneTest.php file core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php
TimezoneTest::$date property core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php The date used in tests.
TimezoneTest::$dateFormat property core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php HTML date format pattern.
TimezoneTest::$elementType property core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php The element type that is being tested ('datetime' or 'datelist').
TimezoneTest::$formattedDates property core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php The test date formatted in various formats and timezones.
TimezoneTest::$modules property core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php Modules to install.
TimezoneTest::$testConditions property core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php The number of test elements on the form.
TimezoneTest::$timeFormat property core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php HTML time format pattern.
TimezoneTest::$timezones property core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php An array of timezones with labels denoting their use in the tests.
TimezoneTest::assertDateTimezonePropertyProcessed function core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php Asserts that elements set #date_timezone correctly.
TimezoneTest::assertTimesUnderstoodCorrectly function core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php Asserts that elements interpret dates using the expected time zones.
TimezoneTest::buildForm function core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php Form constructor.
TimezoneTest::getFormId function core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php Returns a unique string identifying the form.
TimezoneTest::setUp function core/tests/Drupal/KernelTests/Core/Datetime/Element/TimezoneTest.php

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