Search for formatInterval

  1. Search 7.x for formatInterval
  2. Search 8.9.x for formatInterval
  3. Search 10.3.x for formatInterval
  4. Search 11.x for formatInterval
  5. Other projects
Title Object type File name Summary
DateFormatter::formatInterval function core/lib/Drupal/Core/Datetime/DateFormatter.php Formats a time interval with the requested granularity.
DateFormatterInterface::formatInterval function core/lib/Drupal/Core/Datetime/DateFormatterInterface.php Formats a time interval with the requested granularity.
DateTest::providerTestFormatInterval function core/tests/Drupal/Tests/Core/Datetime/DateTest.php Provides some test data for the format interval test.
DateTest::testFormatInterval function core/tests/Drupal/Tests/Core/Datetime/DateTest.php Tests the formatInterval method.
DateTest::testFormatIntervalZeroSecond function core/tests/Drupal/Tests/Core/Datetime/DateTest.php Tests the formatInterval method for 0 second.

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