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):
- Steve Moorhouse (albanycomputers) (https://github.com/albanycomputers)
- Additional maintainers and contributors welcomed.
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:
- Albany Computer Services (https://www.albany-computers.co.uk)
- Albany Web Design (https://www.albanywebdesign.co.uk)
- Albany Hosting (https://www.albany-hosting.co.uk)
License
This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.