You are here

extensions.html.twig in Bamboo Twig 8.3

<div class="test-extensions">

  <!-- Twig Extensions Text -->
  <h2>Twig Extensions Text - Truncat</h2>
  <hr>
  <div class="text-truncat-1">{{ "This is a very long sentence."|bamboo_extensions_truncate(2, false, '...') }}</div>
  <div class="text-truncat-2">{{ "This is a very long sentence."|bamboo_extensions_truncate(6, false, '...') }}</div>
  <div class="text-truncat-3">{{ "This is a very long sentence."|bamboo_extensions_truncate(2, true, '...') }}</div>
  <div class="text-truncat-4">{{ "This is a very long sentence."|bamboo_extensions_truncate(2, true, '[...]') }}</div>
  <div class="text-truncat-5">{{ "This is a very long sentence."|bamboo_extensions_truncate(23, false, '...') }}</div>
  <div class="text-truncat-6">{{ "This is a very long sentence."|bamboo_extensions_truncate(23, true, '...') }}</div>

  <!-- Twig Extensions Array -->
  <h2>Twig Extensions Array - Shuffle</h2>
  <hr>
  {% set ar = [1, 2, 3]|bamboo_extensions_shuffle %}
  <div class="array-shuffle-1">{{ ar|join(', ') }}</div>
  {% set ar = {'a': 'apple', 'b': 'orange', 'c': 'citrus'}|bamboo_extensions_shuffle %}
  <div class="array-shuffle-2">{{ ar|join(', ') }}</div>

  <!-- Twig Extensions Date -->
  <h2>Twig Extensions Date - Time Diff</h2>
  <hr>
  <div class="date-diff-ago-1">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:28:02') }}</div>
  <div class="date-diff-ago-2">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:28:06') }}</div>
  <div class="date-diff-ago-3">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:29:01') }}</div>
  <div class="date-diff-ago-4">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:33:03') }}</div>
  <div class="date-diff-ago-5">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 18:29:01') }}</div>
  <div class="date-diff-ago-6">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('25-07-2014 02:33:03') }}</div>
  <div class="date-diff-ago-7">{{ '24-07-2014'|bamboo_extensions_time_diff('25-07-2014') }}</div>
  <div class="date-diff-ago-8">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('29-07-2014') }}</div>
  <div class="date-diff-ago-9">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-08-2014') }}</div>
  <div class="date-diff-ago-10">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('25-08-2014') }}</div>
  <div class="date-diff-ago-11">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-01-2015') }}</div>
  <div class="date-diff-ago-12">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('20-08-2015') }}</div>
  <div class="date-diff-ago-13">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('20-08-2017') }}</div>

  <div class="date-diff-in-1">{{ '24-07-2014 17:28:02'|bamboo_extensions_time_diff('24-07-2014 17:28:01') }}</div>
  <div class="date-diff-in-2">{{ '24-07-2014 17:28:06'|bamboo_extensions_time_diff('24-07-2014 17:28:01') }}</div>
  <div class="date-diff-in-3">{{ '24-07-2014 17:29:01'|bamboo_extensions_time_diff('24-07-2014 17:28:01') }}</div>
  <div class="date-diff-in-4">{{ '24-07-2014 17:33:03'|bamboo_extensions_time_diff('24-07-2014 17:28:01') }}</div>
  <div class="date-diff-in-5">{{ '24-07-2014 18:29:01'|bamboo_extensions_time_diff('24-07-2014 17:28:01') }}</div>
  <div class="date-diff-in-6">{{ '25-07-2014 02:33:03'|bamboo_extensions_time_diff('24-07-2014 17:28:01') }}</div>
  <div class="date-diff-in-7">{{ '24-07-2014'|bamboo_extensions_time_diff('23-07-2014') }}</div>
  <div class="date-diff-in-8">{{ '24-07-2014'|bamboo_extensions_time_diff('19-07-2014') }}</div>
  <div class="date-diff-in-9">{{ '24-08-2014'|bamboo_extensions_time_diff('23-07-2014') }}</div>
  <div class="date-diff-in-10">{{ '24-01-2015'|bamboo_extensions_time_diff('19-07-2014') }}</div>
  <div class="date-diff-in-11">{{ '20-08-2015'|bamboo_extensions_time_diff('19-07-2014') }}</div>
  <div class="date-diff-in-12">{{ '20-08-2017'|bamboo_extensions_time_diff('19-07-2014') }}</div>

  <!-- Twig Extensions Date -->
  <h2>Twig Extensions Date - Time Diff Forced units</h2>
  <hr>
  <div class="date-diff-unit-ago-1">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:28:02', 's') }}</div>
  <div class="date-diff-unit-ago-2">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:28:02', 'i') }}</div>
  <div class="date-diff-unit-ago-3">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:28:06', 's') }}</div>
  <div class="date-diff-unit-ago-4">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:29:01', 's') }}</div>
  <div class="date-diff-unit-ago-5">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:29:01', 'i') }}</div>
  <div class="date-diff-unit-ago-6">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:33:03', 's') }}</div>
  <div class="date-diff-unit-ago-7">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 18:29:01', 's') }}</div>
  <div class="date-diff-unit-ago-8">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('25-07-2014 02:33:03', 's') }}</div>
  <div class="date-diff-unit-ago-9">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('25-07-2014', 'd') }}</div>
  <div class="date-diff-unit-ago-10">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('29-07-2014', 'd') }}</div>
  <div class="date-diff-unit-ago-11">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-08-2014', 'd') }}</div>
  <div class="date-diff-unit-ago-12">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('25-08-2014', 'm') }}</div>
  <div class="date-diff-unit-ago-13">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-01-2015', 'm') }}</div>
  <div class="date-diff-unit-ago-14">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('20-08-2015', 'd') }}</div>
  <div class="date-diff-unit-ago-15">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('20-08-2017', 'm') }}</div>
  <div class="date-diff-unit-ago-16">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('20-08-2017', 'y') }}</div>

  <div class="date-diff-unit-in-1">{{ '24-07-2014 17:28:02'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 's') }}</div>
  <div class="date-diff-unit-in-2">{{ '24-07-2014 17:28:06'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 's') }}</div>
  <div class="date-diff-unit-in-3">{{ '24-07-2014 17:29:01'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 'i') }}</div>
  <div class="date-diff-unit-in-4">{{ '24-07-2014 17:33:03'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 's') }}</div>
  <div class="date-diff-unit-in-5">{{ '24-07-2014 18:29:01'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 'i') }}</div>
  <div class="date-diff-unit-in-6">{{ '25-07-2014 02:33:03'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 's') }}</div>
  <div class="date-diff-unit-in-7">{{ '24-07-2014'|bamboo_extensions_time_diff('23-07-2014', 'd') }}</div>
  <div class="date-diff-unit-in-8">{{ '24-07-2014'|bamboo_extensions_time_diff('19-07-2014', 'm') }}</div>
  <div class="date-diff-unit-in-9">{{ '24-08-2014'|bamboo_extensions_time_diff('23-07-2014', 'm') }}</div>
  <div class="date-diff-unit-in-10">{{ '24-01-2015'|bamboo_extensions_time_diff('19-07-2014', 'd') }}</div>
  <div class="date-diff-unit-in-11">{{ '20-08-2015'|bamboo_extensions_time_diff('19-07-2014', 'm') }}</div>
  <div class="date-diff-unit-in-12">{{ '20-08-2017'|bamboo_extensions_time_diff('19-07-2014', 'y') }}</div>

  <!-- Twig Extensions Date -->
  <h2>Twig Extensions Date - Time Diff Forced units not Humanized</h2>
  <hr>
  <div class="date-diff-unit-robot-ago-1">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:28:02', 's', FALSE) }}</div>
  <div class="date-diff-unit-robot-ago-2">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:28:02', 'i', FALSE) }}</div>
  <div class="date-diff-unit-robot-ago-3">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:28:06', 's', FALSE) }}</div>
  <div class="date-diff-unit-robot-ago-4">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:29:01', 's', FALSE) }}</div>
  <div class="date-diff-unit-robot-ago-5">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:29:01', 'i', FALSE) }}</div>
  <div class="date-diff-unit-robot-ago-6">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:33:03', 's', FALSE) }}</div>
  <div class="date-diff-unit-robot-ago-7">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 18:29:01', 's', FALSE) }}</div>
  <div class="date-diff-unit-robot-ago-8">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('25-07-2014 02:33:03', 's', FALSE) }}</div>
  <div class="date-diff-unit-robot-ago-9">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('25-07-2014', 'd', FALSE) }}</div>
  <div class="date-diff-unit-robot-ago-10">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('29-07-2014', 'd', FALSE) }}</div>
  <div class="date-diff-unit-robot-ago-11">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-08-2014', 'd', FALSE) }}</div>
  <div class="date-diff-unit-robot-ago-12">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('25-08-2014', 'm', FALSE) }}</div>
  <div class="date-diff-unit-robot-ago-13">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-01-2015', 'm', FALSE) }}</div>
  <div class="date-diff-unit-robot-ago-14">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('20-08-2015', 'd', FALSE) }}</div>
  <div class="date-diff-unit-robot-ago-15">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('20-08-2017', 'm', FALSE) }}</div>
  <div class="date-diff-unit-robot-ago-16">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('20-08-2017', 'y', FALSE) }}</div>

  <div class="date-diff-unit-robot-in-1">{{ '24-07-2014 17:28:02'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 's', FALSE) }}</div>
  <div class="date-diff-unit-robot-in-2">{{ '24-07-2014 17:28:06'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 's', FALSE) }}</div>
  <div class="date-diff-unit-robot-in-3">{{ '24-07-2014 17:29:01'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 'i', FALSE) }}</div>
  <div class="date-diff-unit-robot-in-4">{{ '24-07-2014 17:33:03'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 's', FALSE) }}</div>
  <div class="date-diff-unit-robot-in-5">{{ '24-07-2014 18:29:01'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 'i', FALSE) }}</div>
  <div class="date-diff-unit-robot-in-6">{{ '25-07-2014 02:33:03'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 's', FALSE) }}</div>
  <div class="date-diff-unit-robot-in-7">{{ '24-07-2014'|bamboo_extensions_time_diff('23-07-2014', 'd', FALSE) }}</div>
  <div class="date-diff-unit-robot-in-8">{{ '24-07-2014'|bamboo_extensions_time_diff('19-07-2014', 'm', FALSE) }}</div>
  <div class="date-diff-unit-robot-in-9">{{ '24-08-2014'|bamboo_extensions_time_diff('23-07-2014', 'm', FALSE) }}</div>
  <div class="date-diff-unit-robot-in-10">{{ '24-01-2015'|bamboo_extensions_time_diff('19-07-2014', 'd', FALSE) }}</div>
  <div class="date-diff-unit-robot-in-11">{{ '20-08-2015'|bamboo_extensions_time_diff('19-07-2014', 'm', FALSE) }}</div>
  <div class="date-diff-unit-robot-in-12">{{ '20-08-2017'|bamboo_extensions_time_diff('19-07-2014', 'y', FALSE) }}</div>

  <!-- Twig Extensions Date -->
  <h2>Twig Extensions Date - Time Diff not Humanized</h2>
  <hr>
  <div class="date-diff-robot-ago-1">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:28:02', NULL, FALSE) }}</div>
  <div class="date-diff-robot-ago-2">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:28:02', NULL, FALSE) }}</div>
  <div class="date-diff-robot-ago-3">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:28:06', NULL, FALSE) }}</div>
  <div class="date-diff-robot-ago-4">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:29:01', NULL, FALSE) }}</div>
  <div class="date-diff-robot-ago-5">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:29:01', NULL, FALSE) }}</div>
  <div class="date-diff-robot-ago-6">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:33:03', NULL, FALSE) }}</div>
  <div class="date-diff-robot-ago-7">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 18:29:01', NULL, FALSE) }}</div>
  <div class="date-diff-robot-ago-8">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('25-07-2014 02:33:03', NULL, FALSE) }}</div>
  <div class="date-diff-robot-ago-9">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('25-07-2014', NULL, FALSE) }}</div>
  <div class="date-diff-robot-ago-10">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('29-07-2014', NULL, FALSE) }}</div>
  <div class="date-diff-robot-ago-11">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-08-2014', NULL, FALSE) }}</div>
  <div class="date-diff-robot-ago-12">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('25-08-2014', NULL, FALSE) }}</div>
  <div class="date-diff-robot-ago-13">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-01-2015', NULL, FALSE) }}</div>
  <div class="date-diff-robot-ago-14">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('20-08-2015', NULL, FALSE) }}</div>
  <div class="date-diff-robot-ago-15">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('20-08-2017', NULL, FALSE) }}</div>
  <div class="date-diff-robot-ago-16">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('20-08-2017', NULL, FALSE) }}</div>

  <div class="date-diff-robot-in-1">{{ '24-07-2014 17:28:02'|bamboo_extensions_time_diff('24-07-2014 17:28:01', NULL, FALSE) }}</div>
  <div class="date-diff-robot-in-2">{{ '24-07-2014 17:28:06'|bamboo_extensions_time_diff('24-07-2014 17:28:01', NULL, FALSE) }}</div>
  <div class="date-diff-robot-in-3">{{ '24-07-2014 17:29:01'|bamboo_extensions_time_diff('24-07-2014 17:28:01', NULL, FALSE) }}</div>
  <div class="date-diff-robot-in-4">{{ '24-07-2014 17:33:03'|bamboo_extensions_time_diff('24-07-2014 17:28:01', NULL, FALSE) }}</div>
  <div class="date-diff-robot-in-5">{{ '24-07-2014 18:29:01'|bamboo_extensions_time_diff('24-07-2014 17:28:01', NULL, FALSE) }}</div>
  <div class="date-diff-robot-in-6">{{ '25-07-2014 02:33:03'|bamboo_extensions_time_diff('24-07-2014 17:28:01', NULL, FALSE) }}</div>
  <div class="date-diff-robot-in-7">{{ '24-07-2014'|bamboo_extensions_time_diff('23-07-2014', NULL, FALSE) }}</div>
  <div class="date-diff-robot-in-8">{{ '24-07-2014'|bamboo_extensions_time_diff('19-07-2014', NULL, FALSE) }}</div>
  <div class="date-diff-robot-in-9">{{ '24-08-2014'|bamboo_extensions_time_diff('23-07-2014', NULL, FALSE) }}</div>
  <div class="date-diff-robot-in-10">{{ '24-01-2015'|bamboo_extensions_time_diff('19-07-2014', NULL, FALSE) }}</div>
  <div class="date-diff-robot-in-11">{{ '20-08-2015'|bamboo_extensions_time_diff('19-07-2014', NULL, FALSE) }}</div>
  <div class="date-diff-robot-in-12">{{ '20-08-2017'|bamboo_extensions_time_diff('19-07-2014', NULL, FALSE) }}</div>
</div>

File

tests/modules/bamboo_twig_test/templates/extensions.html.twig
View source
  1. <div class="test-extensions">
  2. <!-- Twig Extensions Text -->
  3. <h2>Twig Extensions Text - Truncat</h2>
  4. <hr>
  5. <div class="text-truncat-1">{{ "This is a very long sentence."|bamboo_extensions_truncate(2, false, '...') }}</div>
  6. <div class="text-truncat-2">{{ "This is a very long sentence."|bamboo_extensions_truncate(6, false, '...') }}</div>
  7. <div class="text-truncat-3">{{ "This is a very long sentence."|bamboo_extensions_truncate(2, true, '...') }}</div>
  8. <div class="text-truncat-4">{{ "This is a very long sentence."|bamboo_extensions_truncate(2, true, '[...]') }}</div>
  9. <div class="text-truncat-5">{{ "This is a very long sentence."|bamboo_extensions_truncate(23, false, '...') }}</div>
  10. <div class="text-truncat-6">{{ "This is a very long sentence."|bamboo_extensions_truncate(23, true, '...') }}</div>
  11. <!-- Twig Extensions Array -->
  12. <h2>Twig Extensions Array - Shuffle</h2>
  13. <hr>
  14. {% set ar = [1, 2, 3]|bamboo_extensions_shuffle %}
  15. <div class="array-shuffle-1">{{ ar|join(', ') }}</div>
  16. {% set ar = {'a': 'apple', 'b': 'orange', 'c': 'citrus'}|bamboo_extensions_shuffle %}
  17. <div class="array-shuffle-2">{{ ar|join(', ') }}</div>
  18. <!-- Twig Extensions Date -->
  19. <h2>Twig Extensions Date - Time Diff</h2>
  20. <hr>
  21. <div class="date-diff-ago-1">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:28:02') }}</div>
  22. <div class="date-diff-ago-2">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:28:06') }}</div>
  23. <div class="date-diff-ago-3">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:29:01') }}</div>
  24. <div class="date-diff-ago-4">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:33:03') }}</div>
  25. <div class="date-diff-ago-5">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 18:29:01') }}</div>
  26. <div class="date-diff-ago-6">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('25-07-2014 02:33:03') }}</div>
  27. <div class="date-diff-ago-7">{{ '24-07-2014'|bamboo_extensions_time_diff('25-07-2014') }}</div>
  28. <div class="date-diff-ago-8">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('29-07-2014') }}</div>
  29. <div class="date-diff-ago-9">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-08-2014') }}</div>
  30. <div class="date-diff-ago-10">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('25-08-2014') }}</div>
  31. <div class="date-diff-ago-11">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-01-2015') }}</div>
  32. <div class="date-diff-ago-12">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('20-08-2015') }}</div>
  33. <div class="date-diff-ago-13">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('20-08-2017') }}</div>
  34. <div class="date-diff-in-1">{{ '24-07-2014 17:28:02'|bamboo_extensions_time_diff('24-07-2014 17:28:01') }}</div>
  35. <div class="date-diff-in-2">{{ '24-07-2014 17:28:06'|bamboo_extensions_time_diff('24-07-2014 17:28:01') }}</div>
  36. <div class="date-diff-in-3">{{ '24-07-2014 17:29:01'|bamboo_extensions_time_diff('24-07-2014 17:28:01') }}</div>
  37. <div class="date-diff-in-4">{{ '24-07-2014 17:33:03'|bamboo_extensions_time_diff('24-07-2014 17:28:01') }}</div>
  38. <div class="date-diff-in-5">{{ '24-07-2014 18:29:01'|bamboo_extensions_time_diff('24-07-2014 17:28:01') }}</div>
  39. <div class="date-diff-in-6">{{ '25-07-2014 02:33:03'|bamboo_extensions_time_diff('24-07-2014 17:28:01') }}</div>
  40. <div class="date-diff-in-7">{{ '24-07-2014'|bamboo_extensions_time_diff('23-07-2014') }}</div>
  41. <div class="date-diff-in-8">{{ '24-07-2014'|bamboo_extensions_time_diff('19-07-2014') }}</div>
  42. <div class="date-diff-in-9">{{ '24-08-2014'|bamboo_extensions_time_diff('23-07-2014') }}</div>
  43. <div class="date-diff-in-10">{{ '24-01-2015'|bamboo_extensions_time_diff('19-07-2014') }}</div>
  44. <div class="date-diff-in-11">{{ '20-08-2015'|bamboo_extensions_time_diff('19-07-2014') }}</div>
  45. <div class="date-diff-in-12">{{ '20-08-2017'|bamboo_extensions_time_diff('19-07-2014') }}</div>
  46. <!-- Twig Extensions Date -->
  47. <h2>Twig Extensions Date - Time Diff Forced units</h2>
  48. <hr>
  49. <div class="date-diff-unit-ago-1">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:28:02', 's') }}</div>
  50. <div class="date-diff-unit-ago-2">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:28:02', 'i') }}</div>
  51. <div class="date-diff-unit-ago-3">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:28:06', 's') }}</div>
  52. <div class="date-diff-unit-ago-4">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:29:01', 's') }}</div>
  53. <div class="date-diff-unit-ago-5">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:29:01', 'i') }}</div>
  54. <div class="date-diff-unit-ago-6">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:33:03', 's') }}</div>
  55. <div class="date-diff-unit-ago-7">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 18:29:01', 's') }}</div>
  56. <div class="date-diff-unit-ago-8">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('25-07-2014 02:33:03', 's') }}</div>
  57. <div class="date-diff-unit-ago-9">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('25-07-2014', 'd') }}</div>
  58. <div class="date-diff-unit-ago-10">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('29-07-2014', 'd') }}</div>
  59. <div class="date-diff-unit-ago-11">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-08-2014', 'd') }}</div>
  60. <div class="date-diff-unit-ago-12">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('25-08-2014', 'm') }}</div>
  61. <div class="date-diff-unit-ago-13">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-01-2015', 'm') }}</div>
  62. <div class="date-diff-unit-ago-14">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('20-08-2015', 'd') }}</div>
  63. <div class="date-diff-unit-ago-15">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('20-08-2017', 'm') }}</div>
  64. <div class="date-diff-unit-ago-16">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('20-08-2017', 'y') }}</div>
  65. <div class="date-diff-unit-in-1">{{ '24-07-2014 17:28:02'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 's') }}</div>
  66. <div class="date-diff-unit-in-2">{{ '24-07-2014 17:28:06'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 's') }}</div>
  67. <div class="date-diff-unit-in-3">{{ '24-07-2014 17:29:01'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 'i') }}</div>
  68. <div class="date-diff-unit-in-4">{{ '24-07-2014 17:33:03'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 's') }}</div>
  69. <div class="date-diff-unit-in-5">{{ '24-07-2014 18:29:01'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 'i') }}</div>
  70. <div class="date-diff-unit-in-6">{{ '25-07-2014 02:33:03'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 's') }}</div>
  71. <div class="date-diff-unit-in-7">{{ '24-07-2014'|bamboo_extensions_time_diff('23-07-2014', 'd') }}</div>
  72. <div class="date-diff-unit-in-8">{{ '24-07-2014'|bamboo_extensions_time_diff('19-07-2014', 'm') }}</div>
  73. <div class="date-diff-unit-in-9">{{ '24-08-2014'|bamboo_extensions_time_diff('23-07-2014', 'm') }}</div>
  74. <div class="date-diff-unit-in-10">{{ '24-01-2015'|bamboo_extensions_time_diff('19-07-2014', 'd') }}</div>
  75. <div class="date-diff-unit-in-11">{{ '20-08-2015'|bamboo_extensions_time_diff('19-07-2014', 'm') }}</div>
  76. <div class="date-diff-unit-in-12">{{ '20-08-2017'|bamboo_extensions_time_diff('19-07-2014', 'y') }}</div>
  77. <!-- Twig Extensions Date -->
  78. <h2>Twig Extensions Date - Time Diff Forced units not Humanized</h2>
  79. <hr>
  80. <div class="date-diff-unit-robot-ago-1">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:28:02', 's', FALSE) }}</div>
  81. <div class="date-diff-unit-robot-ago-2">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:28:02', 'i', FALSE) }}</div>
  82. <div class="date-diff-unit-robot-ago-3">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:28:06', 's', FALSE) }}</div>
  83. <div class="date-diff-unit-robot-ago-4">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:29:01', 's', FALSE) }}</div>
  84. <div class="date-diff-unit-robot-ago-5">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:29:01', 'i', FALSE) }}</div>
  85. <div class="date-diff-unit-robot-ago-6">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:33:03', 's', FALSE) }}</div>
  86. <div class="date-diff-unit-robot-ago-7">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 18:29:01', 's', FALSE) }}</div>
  87. <div class="date-diff-unit-robot-ago-8">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('25-07-2014 02:33:03', 's', FALSE) }}</div>
  88. <div class="date-diff-unit-robot-ago-9">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('25-07-2014', 'd', FALSE) }}</div>
  89. <div class="date-diff-unit-robot-ago-10">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('29-07-2014', 'd', FALSE) }}</div>
  90. <div class="date-diff-unit-robot-ago-11">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-08-2014', 'd', FALSE) }}</div>
  91. <div class="date-diff-unit-robot-ago-12">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('25-08-2014', 'm', FALSE) }}</div>
  92. <div class="date-diff-unit-robot-ago-13">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-01-2015', 'm', FALSE) }}</div>
  93. <div class="date-diff-unit-robot-ago-14">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('20-08-2015', 'd', FALSE) }}</div>
  94. <div class="date-diff-unit-robot-ago-15">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('20-08-2017', 'm', FALSE) }}</div>
  95. <div class="date-diff-unit-robot-ago-16">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('20-08-2017', 'y', FALSE) }}</div>
  96. <div class="date-diff-unit-robot-in-1">{{ '24-07-2014 17:28:02'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 's', FALSE) }}</div>
  97. <div class="date-diff-unit-robot-in-2">{{ '24-07-2014 17:28:06'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 's', FALSE) }}</div>
  98. <div class="date-diff-unit-robot-in-3">{{ '24-07-2014 17:29:01'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 'i', FALSE) }}</div>
  99. <div class="date-diff-unit-robot-in-4">{{ '24-07-2014 17:33:03'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 's', FALSE) }}</div>
  100. <div class="date-diff-unit-robot-in-5">{{ '24-07-2014 18:29:01'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 'i', FALSE) }}</div>
  101. <div class="date-diff-unit-robot-in-6">{{ '25-07-2014 02:33:03'|bamboo_extensions_time_diff('24-07-2014 17:28:01', 's', FALSE) }}</div>
  102. <div class="date-diff-unit-robot-in-7">{{ '24-07-2014'|bamboo_extensions_time_diff('23-07-2014', 'd', FALSE) }}</div>
  103. <div class="date-diff-unit-robot-in-8">{{ '24-07-2014'|bamboo_extensions_time_diff('19-07-2014', 'm', FALSE) }}</div>
  104. <div class="date-diff-unit-robot-in-9">{{ '24-08-2014'|bamboo_extensions_time_diff('23-07-2014', 'm', FALSE) }}</div>
  105. <div class="date-diff-unit-robot-in-10">{{ '24-01-2015'|bamboo_extensions_time_diff('19-07-2014', 'd', FALSE) }}</div>
  106. <div class="date-diff-unit-robot-in-11">{{ '20-08-2015'|bamboo_extensions_time_diff('19-07-2014', 'm', FALSE) }}</div>
  107. <div class="date-diff-unit-robot-in-12">{{ '20-08-2017'|bamboo_extensions_time_diff('19-07-2014', 'y', FALSE) }}</div>
  108. <!-- Twig Extensions Date -->
  109. <h2>Twig Extensions Date - Time Diff not Humanized</h2>
  110. <hr>
  111. <div class="date-diff-robot-ago-1">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:28:02', NULL, FALSE) }}</div>
  112. <div class="date-diff-robot-ago-2">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:28:02', NULL, FALSE) }}</div>
  113. <div class="date-diff-robot-ago-3">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:28:06', NULL, FALSE) }}</div>
  114. <div class="date-diff-robot-ago-4">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:29:01', NULL, FALSE) }}</div>
  115. <div class="date-diff-robot-ago-5">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:29:01', NULL, FALSE) }}</div>
  116. <div class="date-diff-robot-ago-6">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 17:33:03', NULL, FALSE) }}</div>
  117. <div class="date-diff-robot-ago-7">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-07-2014 18:29:01', NULL, FALSE) }}</div>
  118. <div class="date-diff-robot-ago-8">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('25-07-2014 02:33:03', NULL, FALSE) }}</div>
  119. <div class="date-diff-robot-ago-9">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('25-07-2014', NULL, FALSE) }}</div>
  120. <div class="date-diff-robot-ago-10">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('29-07-2014', NULL, FALSE) }}</div>
  121. <div class="date-diff-robot-ago-11">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-08-2014', NULL, FALSE) }}</div>
  122. <div class="date-diff-robot-ago-12">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('25-08-2014', NULL, FALSE) }}</div>
  123. <div class="date-diff-robot-ago-13">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('24-01-2015', NULL, FALSE) }}</div>
  124. <div class="date-diff-robot-ago-14">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('20-08-2015', NULL, FALSE) }}</div>
  125. <div class="date-diff-robot-ago-15">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('20-08-2017', NULL, FALSE) }}</div>
  126. <div class="date-diff-robot-ago-16">{{ '24-07-2014 17:28:01'|bamboo_extensions_time_diff('20-08-2017', NULL, FALSE) }}</div>
  127. <div class="date-diff-robot-in-1">{{ '24-07-2014 17:28:02'|bamboo_extensions_time_diff('24-07-2014 17:28:01', NULL, FALSE) }}</div>
  128. <div class="date-diff-robot-in-2">{{ '24-07-2014 17:28:06'|bamboo_extensions_time_diff('24-07-2014 17:28:01', NULL, FALSE) }}</div>
  129. <div class="date-diff-robot-in-3">{{ '24-07-2014 17:29:01'|bamboo_extensions_time_diff('24-07-2014 17:28:01', NULL, FALSE) }}</div>
  130. <div class="date-diff-robot-in-4">{{ '24-07-2014 17:33:03'|bamboo_extensions_time_diff('24-07-2014 17:28:01', NULL, FALSE) }}</div>
  131. <div class="date-diff-robot-in-5">{{ '24-07-2014 18:29:01'|bamboo_extensions_time_diff('24-07-2014 17:28:01', NULL, FALSE) }}</div>
  132. <div class="date-diff-robot-in-6">{{ '25-07-2014 02:33:03'|bamboo_extensions_time_diff('24-07-2014 17:28:01', NULL, FALSE) }}</div>
  133. <div class="date-diff-robot-in-7">{{ '24-07-2014'|bamboo_extensions_time_diff('23-07-2014', NULL, FALSE) }}</div>
  134. <div class="date-diff-robot-in-8">{{ '24-07-2014'|bamboo_extensions_time_diff('19-07-2014', NULL, FALSE) }}</div>
  135. <div class="date-diff-robot-in-9">{{ '24-08-2014'|bamboo_extensions_time_diff('23-07-2014', NULL, FALSE) }}</div>
  136. <div class="date-diff-robot-in-10">{{ '24-01-2015'|bamboo_extensions_time_diff('19-07-2014', NULL, FALSE) }}</div>
  137. <div class="date-diff-robot-in-11">{{ '20-08-2015'|bamboo_extensions_time_diff('19-07-2014', NULL, FALSE) }}</div>
  138. <div class="date-diff-robot-in-12">{{ '20-08-2017'|bamboo_extensions_time_diff('19-07-2014', NULL, FALSE) }}</div>
  139. </div>