Parse Relative Time

Parse a user-provided relative time string into a Unix timestamp.

Duration is a sequence of numbers, each with a unit suffix. Valid time units are “s” (seconds), “m” (minutes), “h” (hours), “d” (days), “w” (weeks), “mo” (months), “y” (years). Examples: “30m” or “2h45m”.

Inputs

Duration

Relative time (3h, 42d, 1w, etc).

Outputs

Valid Time

Parsed Real-Time (Unix)

Parsed Time (Seconds)

Parsed Time (Minutes)

Parsed Time (Hours)

Parsed Time (Days)