Nodes/Comfyui-TOO-Pack/⏱️ TOO Time Converter
ComfyUI Node

⏱️ TOO Time Converter

The Trivial Little Time Node You'll End Up Keeping In Every Graph

By tetsuoo-onlineΒ·Created 9 months agoΒ·Updated about a month agoΒ· 5
⏱️ TOO Time Converter
    • formatted
    • total_seconds
    β—„value0.0β–Ί
    β—„unitSecondesβ–Ί

    TOO Time Converter turns a number of seconds, minutes, or hours into a formatted duration like 02h15m30s - and shows the answer right on the node, live, before you even run anything. That's it. It's the most trivial node in the TOO-Pack and honestly one of the most used, because ComfyUI is full of places where a duration in one unit has to become another unit with no calculator in sight.

    The real reason to reach for it is the second output. formatted gives you the pretty HHhMMmSSs string; total_seconds gives you the raw integer seconds. Need to know how many frames a 1.5-minute clip is at 24fps? Wire total_seconds into an INT Γ— 24. Planning an AnimateDiff or LTX video pass and a widget wants seconds while you think in minutes? Type 3 in minutes, take total_seconds out. It's a value node that does the unit conversion for you, and the plumbing layer (where this lives) exists precisely so you don't hand-convert numbers in your head and paste the result into four different widgets.

    How it works

    The math is boring and correct: minutes Γ— 60, hours Γ— 3600, round to the nearest second, then format with two-digit padding. A JS extension draws a little result box on the node that recomputes as you type - and if you wire value in from another node instead, it updates after each execution. Nothing to configure, no state.

    Inputs and outputs

    • value - a FLOAT, 0 to 999999, step 0.1. The number you want converted.
    • unit - a dropdown. Here's the only trap: it's in French - Secondes, Minutes, Heures. That's seconds, minutes, hours. The author is francophone and shipped the enum untranslated. You'll decode it on sight after one use.
    • formatted - STRING, the HHhMMmSSs / MMmSSs / SSs result.
    • total_seconds - INT, the rounded total in seconds.

    Both outputs are handy: formatted for a Note node or to build a filename, total_seconds for actual arithmetic downstream.

    Install

    It ships in the pack, so the install is the pack's install:

    cd ComfyUI/custom_nodes
    git clone https://github.com/tetsuoo-online/Comfyui-TOO-Pack
    

    then restart, or find "Comfyui-TOO-Pack" in ComfyUI Manager. The pack's only real dependencies (torch, numpy, Pillow, piexif) are things a working ComfyUI already has, so there's nothing special to fetch for this node.

    Common issues

    Honestly, there's not much to break here. Two things that do trip people:

    • The display looks wrong until you run. The live box computes from the widget values, but if value is wired from another node, the on-node result only refreshes after the graph actually executes. That's not a bug - it just doesn't know what it'll receive until it runs.
    • It rounds to whole seconds. Fractions under half a second vanish. If you need sub-second precision this isn't the node; it's for durations, not timing code.

    Beyond that it's a calculator with a face. That's the whole appeal - no setup, no models, no surprises, and it stays useful in a corner of your graph forever. One light caveat: the pack is a small solo project with essentially no community discussion, so if you ever hit a real problem you'll be reading the source, not a forum thread. For this node, you almost certainly won't.

    CategoryπŸ”΅TOO-Pack/utils

    Inputs (2)

    NameTypeDefaultDescription
    valueFLOAT0.00–999999β€”
    unitCOMBOSecondes3 options: Secondes, Minutes, Heures

    Outputs (2)

    NameTypeDescription
    formattedSTRINGβ€”
    total_secondsINTβ€”