New plugin: Seconds to time formatter

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:

:input_latin_letters: 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.

-–

:1234: 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.

:check_mark: Full, abbreviated, zero-free & smart outputs

:check_mark: Workflow-friendly numeric states

:check_mark: Frontend only, fast, deterministic

:check_mark: Marketplace-ready & production-safe

Built in collaboration with **Ossama Ahmed**.

Get it now

Demo

Editor

If u have any suggestions, feel free to right down the comments.

In what situations does this plugin solve what Bubble cannot?

1 Like

Good question — and it’s a fair one.

Bubble can convert seconds into things like days or hours, but it falls short as soon as you need consistent, reusable, and UI-ready duration logic.

Here’s where this plugin solves real gaps:

Bubble doesn’t have a native way to:

* Convert seconds into **multiple units at once** (years, months, days, etc.) in a single step

* Keep the logic **deterministic and reusable** across pages and workflows

* Produce **human-friendly formatted strings** without complex, fragile expressions

* Handle **months and years** with fixed, predictable rules (Bubble has no built-in concept for this)

* Automatically generate **smart displays** like “day + hour” or “year + month” based on the value

* Expose both **formatted text and raw numeric units** cleanly at the same time

In practice, without the plugin you end up:

* Repeating calculations in multiple workflows

* Chaining conditions and math expressions that are hard to maintain

* Rebuilding formatting logic for every text element

* Introducing subtle inconsistencies across the app

This plugin centralizes all of that into one reliable action

you pass seconds in, and you get production-ready outputs you can immediately use in the UI or logic.

1 Like