Search for time

  1. Search 7.x for time
  2. Search 9.5.x for time
  3. Search 10.3.x for time
  4. Search 11.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
datetime_range_test.info.yml file core/modules/datetime_range/tests/modules/datetime_range_test/datetime_range_test.info.yml core/modules/datetime_range/tests/modules/datetime_range_test/datetime_range_test.info.yml
datetime_range_test.module file core/modules/datetime_range/tests/modules/datetime_range_test/datetime_range_test.module Contains datetime_range_test.module
datetime_range_test_entity_type_alter function core/modules/datetime_range/tests/modules/datetime_range_test/datetime_range_test.module Implements hook_entity_type_alter().
datetime_range_view_presave function core/modules/datetime_range/datetime_range.module Implements hook_ENTITY_TYPE_presave().
DATETIME_STORAGE_TIMEZONE constant core/modules/datetime/datetime.module Defines the timezone that dates should be stored in.
datetime_test.info.yml file core/modules/datetime/tests/modules/datetime_test/datetime_test.info.yml core/modules/datetime/tests/modules/datetime_test/datetime_test.info.yml
datetime_type_field_views_data_helper function core/modules/datetime/datetime.views.inc Provides Views integration for any datetime-based fields.
DbLogTest::testSameTimestampEntries function core/modules/dblog/tests/src/Functional/DbLogTest.php Test sorting for entries with the same timestamp.
DefaultConfigTest::$timeLimit property core/tests/Drupal/KernelTests/Config/DefaultConfigTest.php
Drupal::time function core/lib/Drupal.php Returns the time service.
DrupalDateTime class core/lib/Drupal/Core/Datetime/DrupalDateTime.php Extends DateTimePlus().
DrupalDateTime.php file core/lib/Drupal/Core/Datetime/DrupalDateTime.php
DrupalDateTime::$formatTranslationCache property core/lib/Drupal/Core/Datetime/DrupalDateTime.php Formatted strings translation cache.
DrupalDateTime::format function core/lib/Drupal/Core/Datetime/DrupalDateTime.php Overrides format().
DrupalDateTime::prepareTimezone function core/lib/Drupal/Core/Datetime/DrupalDateTime.php Overrides prepareTimezone().
DrupalDateTime::__construct function core/lib/Drupal/Core/Datetime/DrupalDateTime.php Constructs a date object.
DrupalDateTimeTest class core/tests/Drupal/Tests/Core/Datetime/DrupalDateTimeTest.php @coversDefaultClass \Drupal\Core\Datetime\DrupalDateTime
@group Datetime
DrupalDateTimeTest class core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php Tests DrupalDateTime functionality.
DrupalDateTimeTest.php file core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php
DrupalDateTimeTest.php file core/tests/Drupal/Tests/Core/Datetime/DrupalDateTimeTest.php
DrupalDateTimeTest::$defaultTheme property core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php The theme to install as the default for testing.
DrupalDateTimeTest::$modules property core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php Set up required modules.
DrupalDateTimeTest::providerTestDateDiff function core/tests/Drupal/Tests/Core/Datetime/DrupalDateTimeTest.php Provides data for date tests.
DrupalDateTimeTest::providerTestInvalidDateDiff function core/tests/Drupal/Tests/Core/Datetime/DrupalDateTimeTest.php Provides data for date tests.
DrupalDateTimeTest::setUp function core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php Test setup.
DrupalDateTimeTest::testChainable function core/tests/Drupal/Tests/Core/Datetime/DrupalDateTimeTest.php Tests that object methods are chainable.
DrupalDateTimeTest::testChainableNonCallable function core/tests/Drupal/Tests/Core/Datetime/DrupalDateTimeTest.php Tests that chained calls to non-existent functions throw an exception.
DrupalDateTimeTest::testChainableNonChainable function core/tests/Drupal/Tests/Core/Datetime/DrupalDateTimeTest.php Tests that non-chainable methods work.
DrupalDateTimeTest::testDateDiff function core/tests/Drupal/Tests/Core/Datetime/DrupalDateTimeTest.php Test date diffs.
DrupalDateTimeTest::testDateTimezone function core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php Test that DrupalDateTime can detect the right timezone to use.
Test with a variety of less commonly used timezone names to
help ensure that the system timezone will be different than the
stated timezones.
DrupalDateTimeTest::testDefaultDateTime function core/tests/Drupal/Tests/Core/Datetime/DrupalDateTimeTest.php Tests setting the default time for date-only objects.
DrupalDateTimeTest::testGetPhpDateTime function core/tests/Drupal/Tests/Core/Datetime/DrupalDateTimeTest.php @covers ::getPhpDateTime
DrupalDateTimeTest::testInvalidDateDiff function core/tests/Drupal/Tests/Core/Datetime/DrupalDateTimeTest.php Test date diff exception caused by invalid input.
DrupalDateTimeTest::testSystemTimezone function core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php Test that the AJAX Timezone Callback can deal with various formats.
DrupalDateTimeTest::testTimezoneFormat function core/modules/system/tests/src/Functional/Datetime/DrupalDateTimeTest.php Tests the ability to override the time zone in the format method.
drupal_get_user_timezone function core/includes/bootstrap.inc Returns the time zone of the current user.
drupal_set_time_limit function core/includes/common.inc Attempts to set the PHP maximum execution time.
DRUPAL_USER_TIMEZONE_DEFAULT constant core/modules/system/system.module New users will be set to the default time zone at registration.
DRUPAL_USER_TIMEZONE_EMPTY constant core/modules/system/system.module New users will get an empty time zone at registration.
DRUPAL_USER_TIMEZONE_SELECT constant core/modules/system/system.module New users will select their own timezone at registration.
EntityChangedInterface::getChangedTime function core/lib/Drupal/Core/Entity/EntityChangedInterface.php Gets the timestamp of the last entity change for the current translation.
EntityChangedInterface::getChangedTimeAcrossTranslations function core/lib/Drupal/Core/Entity/EntityChangedInterface.php Gets the timestamp of the last entity change across all translations.
EntityChangedInterface::setChangedTime function core/lib/Drupal/Core/Entity/EntityChangedInterface.php Sets the timestamp of the last entity change for the current translation.
EntityChangedTrait::getChangedTime function core/lib/Drupal/Core/Entity/EntityChangedTrait.php Gets the timestamp of the last entity change for the current translation.
EntityChangedTrait::getChangedTimeAcrossTranslations function core/lib/Drupal/Core/Entity/EntityChangedTrait.php Returns the timestamp of the last entity change across all translations.
EntityChangedTrait::setChangedTime function core/lib/Drupal/Core/Entity/EntityChangedTrait.php Sets the timestamp of the last entity change for the current translation.
EntityModerationForm::$time property core/modules/content_moderation/src/Form/EntityModerationForm.php The time service.
EntityResource::$time property core/modules/jsonapi/src/Controller/EntityResource.php The time service.
EntityTestDatetimeTest class core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDatetimeTest.php Tests the datetime field constraint with 'datetime' items.
EntityTestDatetimeTest.php file core/modules/datetime/tests/src/Functional/EntityResource/EntityTest/EntityTestDatetimeTest.php

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