Current Timestamp
The current date and time as a formatted string
- STRING
Gives you the current date and time as a string, formatted however you ask. It's a tiny node with one honest use: making filenames and logs that carry when they were made. Wire it into a filename builder and every output is stamped with its own timestamp, which means files sort chronologically and never overwrite each other.
That's genuinely the killer feature. The default ComfyUI numbering (ComfyUI_00001, _00002) resets and collides across sessions; a timestamp is unique by nature and tells you at a glance when something was generated. For anyone running a lot of experiments, timestamped outputs are the difference between an organized folder and a pile of same-named files.
How it works
It reads the clock on the machine running ComfyUI and formats it according to your pattern. The formatting uses standard strftime-style codes - the same ones every language uses for dates - so %Y-%m-%d gives you 2026-08-02, %H-%M-%S gives you 14-30-05, and you combine them however you like. A common filename-safe pattern is %Y-%m-%d_%H-%M-%S, which avoids colons and slashes that some filesystems dislike.
The input that matters
- format_string - your strftime pattern. This is the only knob. Fill in the codes for the parts you want (year, month, day, hour, minute, second) with separators that are safe for filenames. Leave it blank and you'll get the node's built-in default format.
The output is a single STRING - the formatted timestamp - that drops straight into a filename prefix, a save-text node, a metadata field, or a log line.
One thing to keep in mind
It reads the time at execution, so the value reflects the server's clock and timezone, not necessarily yours if you're running ComfyUI on a remote or cloud machine. Usually that's fine for filenames, but if the timestamps look "wrong" by a few hours, that's the timezone of the host, not a bug. And because it re-reads the clock each run, two nodes firing in the same second can produce identical stamps - if you need guaranteed uniqueness even within a second, pair it with a counter or a UUID.
Installing ComfyUI-LogicUtils
ComfyUI Manager: Install Custom Nodes → search "ComfyUI-LogicUtils" → install → restart. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/aria1th/ComfyUI-LogicUtils
Restart ComfyUI. No dependencies - it's reading a clock.
Worth knowing
The pack is aria1th's (AngelBottomless) undocumented toolkit of small utilities, and this is about as small as they come. The only thing to get right is the format string; keep it to filename-safe characters and you've got self-organizing, never-colliding output names for free.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| format_string | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |