DRAGOPS
DRAGOPS
DocumentationNode libraryDate / Time

Date / Time

Timestamps, date formatting, parsing, arithmetic, epoch conversion, and comparison nodes.

Date / Time nodes handle temporal operations — getting the current time, formatting dates for display, parsing date strings, computing durations, and converting to and from Unix timestamps.

All Date / Time nodes are pure (blue header, no execution pins).


Now

Get the current date and time.

PinDirectionTypeDescription
Date/TimeOutputDateTimeCurrent UTC date and time

Pure. Use Now to timestamp events, compute deadlines, or create time-based filenames.


Format Date

Format a date/time value as a human-readable string.

PinDirectionTypeDescription
DateInputDateTimeThe date to format
FormatInputStringFormat pattern (default: "YYYY-MM-DD")
ResultOutputStringFormatted date string

Pure. Use Format Date to produce display-friendly timestamps for notifications, reports, or log messages.


Parse Date

Parse a string into a date/time value.

PinDirectionTypeDescription
ValueInputStringThe date string to parse
FormatInputStringExpected format pattern (default: auto-detect)
Date/TimeOutputDateTimeParsed date value

Pure. Use Parse Date to convert date strings from API responses, log entries, or user input into DateTime values for comparison and arithmetic.


Date Add

Add a duration to a date. Supports seconds, minutes, hours, days, weeks, months, and years.

PinDirectionTypeDescription
DateInputDateTimeThe starting date
AmountInputFloatDuration to add (negative to subtract)
UnitInputStringTime unit: seconds, minutes, hours, days, weeks, months, years
ResultOutputDateTimeResulting date

Pure. Use Date Add to calculate deadlines, expiration dates, or lookback windows — "30 days from now", "2 hours ago".


Date Diff

Get the duration between two dates in a specified unit.

PinDirectionTypeDescription
AInputDateTimeFirst date
BInputDateTimeSecond date
UnitInputStringResult unit: seconds, minutes, hours, days, weeks, months, years
ResultOutputFloatDuration between A and B

Pure. Use Date Diff to measure time elapsed — age of an alert, duration of a process, or time since last activity.


Date Component

Extract a single component from a date (year, month, day, hour, minute, second, or day of week).

PinDirectionTypeDescription
DateInputDateTimeThe date to inspect
ComponentInputStringComponent to extract: year, month, day, hour, minute, second, dayOfWeek
ValueOutputIntegerThe extracted component value

Pure. Use Date Component to build schedule logic — check if it is a weekend, extract the hour for business-hours detection.


To Epoch

Convert a date/time value to a Unix timestamp (seconds since 1970-01-01T00:00:00Z).

PinDirectionTypeDescription
DateInputDateTimeThe date to convert
TimestampOutputIntegerUnix timestamp

Pure. Use To Epoch for APIs that expect timestamps as integers, or for numeric date comparisons.


From Epoch

Convert a Unix timestamp to a date/time value.

PinDirectionTypeDescription
TimestampInputIntegerUnix timestamp
Date/TimeOutputDateTimeConverted date/time

Pure. Use From Epoch to convert integer timestamps from APIs or databases into DateTime values.


Date Compare

Compare two dates. Returns -1 (A before B), 0 (equal), or 1 (A after B).

PinDirectionTypeDescription
AInputDateTimeFirst date
BInputDateTimeSecond date
ResultOutputInteger-1, 0, or 1

Pure. Use Date Compare for sorting dates or checking chronological order without computing a full diff.


Start Of

Get the start of a time period — the beginning of a day, week, month, or year.

PinDirectionTypeDescription
DateInputDateTimeThe reference date
UnitInputStringPeriod: day, week, month, year
ResultOutputDateTimeStart of the specified period

Pure. Use Start Of to align timestamps to period boundaries — query logs from the start of today, calculate monthly totals.


  • Comparison — compare date-derived values with Greater Than, Less Than
  • Type Conversion — convert dates to strings or parse strings to dates
  • Math — perform arithmetic on epoch timestamps or durations

On this page