Search for formatDiff

  1. Search 7.x for formatDiff
  2. Search 9.5.x for formatDiff
  3. Search 8.9.x for formatDiff
  4. Search 10.3.x for formatDiff
  5. Other projects
Title Object type File name Summary
DateFormatter::formatDiff function core/lib/Drupal/Core/Datetime/DateFormatter.php Formats a time interval between two timestamps.
DateFormatterInterface::formatDiff function core/lib/Drupal/Core/Datetime/DateFormatterInterface.php Formats a time interval between two timestamps.
DateTest::providerTestFormatDiff function core/tests/Drupal/Tests/Core/Datetime/DateTest.php Data provider for testFormatDiff().
DateTest::testFormatDiff function core/tests/Drupal/Tests/Core/Datetime/DateTest.php Tests the formatDiff method.
TimestampFormatterWithTimeDiffTest::getFormatDiffTestCases function core/tests/Drupal/FunctionalJavascriptTests/Core/Field/TimestampFormatterWithTimeDiffTest.php Provides test cases for unit testing Drupal.timeDiff.format().

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