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
TimeWithNoRequestTest class core/tests/Drupal/Tests/Component/Datetime/TimeWithNoRequestTest.php Tests that getRequest(Micro)Time works when no underlying request exists.
TimeWithNoRequestTest.php file core/tests/Drupal/Tests/Component/Datetime/TimeWithNoRequestTest.php
TimeWithNoRequestTest::$time property core/tests/Drupal/Tests/Component/Datetime/TimeWithNoRequestTest.php The time class for testing.
TimeWithNoRequestTest::setUp function core/tests/Drupal/Tests/Component/Datetime/TimeWithNoRequestTest.php
TimeWithNoRequestTest::testGetRequestMicroTimeImmutable function core/tests/Drupal/Tests/Component/Datetime/TimeWithNoRequestTest.php Tests the getRequestMicroTime method.
TimeWithNoRequestTest::testGetRequestTimeImmutable function core/tests/Drupal/Tests/Component/Datetime/TimeWithNoRequestTest.php Tests the getRequestTime method.
TimeZone class core/modules/system/src/Plugin/migrate/process/d6/TimeZone.php Process the D6 Timezone offset into a D8 compatible timezone name.
TimeZone.php file core/modules/system/src/Plugin/migrate/process/d6/TimeZone.php
TimeZone::transform function core/modules/system/src/Plugin/migrate/process/d6/TimeZone.php Performs the associated process.
TimeZoneAbbreviationRouteTest class core/modules/system/tests/src/Functional/Datetime/TimeZoneAbbreviationRouteTest.php Tests converting JavaScript time zone abbreviations to time zone identifiers.
TimeZoneAbbreviationRouteTest.php file core/modules/system/tests/src/Functional/Datetime/TimeZoneAbbreviationRouteTest.php
TimeZoneAbbreviationRouteTest::$defaultTheme property core/modules/system/tests/src/Functional/Datetime/TimeZoneAbbreviationRouteTest.php The theme to install as the default for testing.
TimeZoneAbbreviationRouteTest::$modules property core/modules/system/tests/src/Functional/Datetime/TimeZoneAbbreviationRouteTest.php Modules to install.
TimeZoneAbbreviationRouteTest::providerAbbreviationConversion function core/modules/system/tests/src/Functional/Datetime/TimeZoneAbbreviationRouteTest.php Provides test data for testGet().
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.

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