New Bubble Plugin: Smart Duration Formatter
Tired of messy time calculations in Bubble?
Smart Duration Formatter converts seconds into clean, human-readable durations — years, months, days, hours, minutes, seconds — with smart formatting options built in.
Real power:
Here’s a short, clear explanation for each exposed state:
Formatted Text States
formatted_text
Full duration formatted with all units, including zero values.
-–
formatted_text_abbreviation
Same as `formatted_text`, but using short unit labels (yr, mo, d, hr, mn, s).
-–
formatted_text_no_zeros
Formatted duration with all zero-value units removed for cleaner display.
-–
formatted_text_smart
Automatically shows the most relevant unit and the unit after it
(e.g. year + month, day + hour), even if the second value is zero.
-–
Numeric States
years
Number of full years extracted from the input seconds.
-–
months
Number of full months extracted after years are removed.
-–
days
Number of full days extracted after months are removed.
-–
hours
Number of full hours extracted after days are removed.
-–
minutes
Number of full minutes extracted after hours are removed.
seconds_remaining
Remaining seconds after all larger units are extracted.
Full, abbreviated, zero-free & smart outputs
Workflow-friendly numeric states
Frontend only, fast, deterministic
Marketplace-ready & production-safe
Built in collaboration with **Ossama Ahmed**.
If u have any suggestions, feel free to right down the comments.