Nodes/Basic data handling/Extract Time Components
ComfyUI Node

Extract Time Components

Extracts individual components (year, month, day, hour, etc.) from a DATETIME object. Weekday is returned as an integer, where Monday is 0 and Sunday is 6.

By StableLlama·Created about a year ago·Updated 25 days ago· 45
Extract Time Components
  • datetime
  • year
  • month
  • day
  • hour
  • minute
  • second
  • microsecond
  • weekday
CategoryBasic/time

Inputs (1)

NameTypeDefaultDescription
datetimeDATETIME

Outputs (8)

NameTypeDescription
yearINT
monthINT
dayINT
hourINT
minuteINT
secondINT
microsecondINT
weekdayINT