ComfyUI > Nodes > Basic data handling > Create Time Delta

ComfyUI Node: Create Time Delta

Class Name

Basic data handling: TimeDelta

Category
Basic/time
Author
StableLlama (Account age: 861days)
Extension
Basic data handling
Latest Updated
2026-05-07
Github Stars
0.04K

How to Install Basic data handling

Install this extension via the ComfyUI Manager by searching for Basic data handling
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Basic data handling in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Create Time Delta Description

The TimeDelta node creates a TIMEDELTA object for precise time interval calculations and management.

Create Time Delta:

The TimeDelta node is designed to create a TIMEDELTA object, which represents a specific duration of time. This node is particularly useful for performing date and time calculations, such as adding or subtracting time intervals from specific dates. By utilizing this node, you can easily manage and manipulate time durations in your projects, allowing for precise control over time-based operations. Whether you need to calculate future dates, determine the duration between events, or adjust timestamps, the TimeDelta node provides a flexible and efficient solution for handling time intervals.

Create Time Delta Input Parameters:

days

This parameter specifies the number of days to include in the time duration. It allows you to define longer periods of time, such as weeks or months, by using multiples of days. The default value is 0, and there is no explicit minimum or maximum value, allowing for both positive and negative durations.

seconds

This parameter defines the number of seconds to include in the time duration. It is useful for specifying shorter time intervals or fine-tuning the duration to a precise second. The default value is 0, with no specified minimum or maximum, enabling flexibility in duration specification.

microseconds

This parameter allows you to specify the number of microseconds in the time duration, providing a high level of precision for very short time intervals. The default value is 0, and like other parameters, it does not have a set minimum or maximum value.

milliseconds

This parameter specifies the number of milliseconds to include in the time duration. It is particularly useful for defining durations that require millisecond precision. The default value is 0, and there are no explicit limits on the values you can use.

minutes

This parameter allows you to define the number of minutes in the time duration. It is ideal for specifying durations that are longer than seconds but shorter than hours. The default value is 0, with no specified minimum or maximum value.

hours

This parameter specifies the number of hours to include in the time duration. It is useful for defining longer periods of time, such as a workday or half a day. The default value is 0, and there are no explicit limits on the values you can use.

weeks

This parameter allows you to specify the number of weeks in the time duration. It is particularly useful for defining longer durations, such as project timelines or vacation periods. The default value is 0, with no specified minimum or maximum value.

Create Time Delta Output Parameters:

TIMEDELTA

The output of the TimeDelta node is a TIMEDELTA object, which represents the total duration specified by the input parameters. This object can be used in various time calculations, such as adding to or subtracting from a DATETIME object, to determine future or past dates. The TIMEDELTA object provides a convenient way to handle and manipulate time intervals in your projects.

Create Time Delta Usage Tips:

  • Use the TimeDelta node to easily calculate future or past dates by adding or subtracting the resulting TIMEDELTA from a DATETIME object.
  • Combine multiple input parameters to create complex time durations, such as specifying both days and hours for a more precise interval.

Create Time Delta Common Errors and Solutions:

Invalid input type

  • Explanation: This error occurs when a non-numeric value is provided for one of the input parameters.
  • Solution: Ensure that all input parameters are specified as numeric values, such as integers or floats.

Negative duration not handled

  • Explanation: If negative values are used for input parameters, the resulting TIMEDELTA may not behave as expected.
  • Solution: Verify that negative values are intentional and understand how they will affect the resulting duration. Adjust input values if necessary to achieve the desired outcome.

Create Time Delta Related Nodes

Go back to the extension to check out more related nodes.
Basic data handling
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Create Time Delta