Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate timestamp strings with customizable formats for AI artists to incorporate dynamic timestamps into workflows easily.
The Time String (WLSH) node is designed to generate a timestamp string based on the current date and time, formatted according to a specified style. This node is particularly useful for AI artists who need to incorporate dynamic timestamps into their workflows, such as for naming files, logging events, or adding time-based metadata to their projects. By providing a variety of predefined time formats, this node ensures flexibility and ease of use, allowing you to select the format that best suits your needs without requiring in-depth technical knowledge.
The style
parameter allows you to choose the format in which the timestamp will be generated. It accepts a list of predefined time formats, such as "%Y%m%d%H%M%S"
, "%Y%m%d%H%M"
, "%Y%m%d"
, "%Y-%m-%d-%H%M%S"
, "%Y-%m-%d-%H%M"
, and "%Y-%m-%d"
. Each format represents a different way of displaying the date and time, ranging from a full timestamp with year, month, day, hour, minute, and second, to simpler formats that include only the date. Selecting the appropriate format will impact how the timestamp appears in your output, making it easier to organize and identify your files or logs.
The time_format
output parameter provides the generated timestamp string based on the current date and time, formatted according to the selected style. This output is crucial for tasks that require precise time tracking or for creating unique identifiers that include a time component. The timestamp string can be used directly in filenames, logs, or any other context where a formatted date and time string is needed.
"%Y-%m-%d-%H%M%S"
."%Y%m%d"
for tasks that only require the date, such as daily logs or reports."%Y%m%d%H%M%S"
, "%Y%m%d%H%M"
, "%Y%m%d"
, "%Y-%m-%d-%H%M%S"
, "%Y-%m-%d-%H%M"
, or "%Y-%m-%d"
.style
parameter is not provided.style
parameter when using the node, selecting one of the available time formats.© Copyright 2024 RunComfy. All Rights Reserved.