Make relative() more verbose

Use case or problem

Currently relative() rounds up, and lacks verbosity. I want it to display like “2 months 19 days 18 hours 40 minutes 24 seconds” vs how it displays now; “3 Months”.

I am using now() - date.relative() as an example.

Dataview date math = date(today) - date([[2025-07-23]]) will display “2 months, 2 weeks, 5 days ago”

Proposed solution

relative() should take some type of formatting option. Like `relative(“YYYY MM DDD”)

Current workaround (optional)

Keep using dataview

2 Likes

Another workaround is making an object-like list of lists with the duration’s calculated portions of time and labels (years, months, days, hours, etc.) and filtering & mapping to display the portions that exist. :frowning:

The forum and Discord have seen a few help requests about how to achieve this, and I too would greatly appreciate a built-in duration format function instead.