Recommended releases

Download Released

Install this module using the official Backdrop CMS instructions at https://docs.backdropcms.org/documentation/extend-with-modules

Configuration / Usage Notes

Go to the "Manage Display" tab of any content type or a Views configuration.

Select Age / Birthday (Precise) as the formatter for your date field.

Click the gear icon to adjust granularity and display style.

Developer Usage

You can use the precision engine in your own modules by calling the internal helper function:

$timestamp = 16789000; // Example timestamp
$precision = 2; // Show 2 units
echo date_precision_format_interval($timestamp, $precision);

Issues:

Bugs and Feature requests should be reported in the Issue Queue: https://github.com/backdrop-contrib/date_precision/issues

Current Maintainer(s):

Credits:

  • Steve Moorhouse - Zulip (DrAlbany)
  • Google Gemini 3.0 assisted with the coding of this module.
  • This module was created to address Backdrop Issue #7069 and serves as a reference implementation for future core improvements.

Sponsorship:

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.