Nodes/ComfyUI-ZhiHui/💾 智绘_中文时间戳保存
ComfyUI Node

💾 智绘_中文时间戳保存

Files named 2026年08月28日14时30分45秒 — the timestamp saver for Chinese users

By zhuyungen·Created 8 months ago·Updated 3 months ago· 0
💾 智绘_中文时间戳保存
  • images
    custom_suffix智绘作品
    path_subfolderZHIHUI_Output
    timestamp_format年-月-日-时-分-秒
    overwrite_modefalse

    Most timestamp savers write ISO-style names like 2026-08-28_143045.png. This one writes 2026年08月28日14时30分45秒_智绘作品_00.png - the whole point of ZH_SaveImageWithDateTime ("💾 智绘_中文时间戳保存") is Chinese-locale filenames, with your own suffix glued in. If you read Chinese, the filenames are instantly legible: date, time, and a label you chose, all human-friendly in a way that raw epoch stamps never are.

    It's from ComfyUI-ZhiHui, a Chinese-language utility pack. This is the pack's everyday "just save it" node - simpler than ZH_SaveImagePlus (which is the arbitrary-path, DPI, metadata-control one). Here the naming is the feature.

    How it works

    On each run it grabs the current time, formats it per timestamp_format - full 年-月-日-时-分-秒, or just the date, or just the time - and builds the filename as {时间戳}_{custom_suffix}_{序号}.png. The custom_suffix defaults to "智绘作品" ("ZhiHui artwork"); change it to a project name and your output folder becomes self-documenting. Files land in ComfyUI/output/{path_subfolder}, with the subfolder created on demand.

    The overwrite_mode toggle decides numbering:

    • Off (default) - each file gets a _00, _01, … suffix, so a batch of frames or repeated runs never clobber each other.
    • On - no suffix at all, so every run writes the same filename and overwrites the previous one. In a batch, frames overwrite each other too - only the last survives. That's the "keep the folder tidy while I iterate on one image" mode.

    Like every save node worth its salt, PNGs get the workflow embedded (the prompt and workflow chunks), so a saved image can reconstruct its own graph when dragged back into ComfyUI. Compression is fixed at level 4.

    The inputs that matter

    • images - what to save.
    • custom_suffix - the label in the filename.
    • path_subfolder - subfolder under output/.
    • timestamp_format - full date+time, date only, or time only.
    • overwrite_mode - number or overwrite.

    There are no outputs - this is a terminal node (OUTPUT_NODE), the image goes to disk and nothing flows on.

    Install

    cd ComfyUI/custom_nodes
    git clone https://github.com/zhuyungen/ComfyUI-ZhiHui.git
    

    Restart ComfyUI. Base deps only, no models. ComfyUI Manager search "ComfyUI-ZhiHui" also works.

    Where people get burned

    The author's own doc flags the real one: with full-second timestamps, two runs inside the same second collide - the second file overwrites the first unless overwrite_mode is off (then the _00 suffix saves you). So if you're rerunning a fast workflow, keep overwrite off or the earlier output is gone. Second, the save location is locked to output/ - this node has no arbitrary-path option; use ZH_SaveImagePlus for that. And a filename gotcha from the metadata world: these files carry the workflow chunks, so if you're about to share one, know the graph travels with it - strip it (or use the metadata-off mode of SaveImagePlus) if that's a concern.

    Category智绘灵箱/图片

    Inputs (5)

    NameTypeDefaultDescription
    imagesIMAGE
    custom_suffixSTRING智绘作品
    path_subfolderSTRINGZHIHUI_Output
    timestamp_formatCOMBO年-月-日-时-分-秒3 options: 年-月-日-时-分-秒, 仅日期, 仅时间
    overwrite_modeBOOLEANfalse

    Outputs (0)

    No outputs