Power Automate (WDL) function
addHours / addMinutes — Power Automate (WDL) function reference
Add smaller spans.
Syntax
wdl
addHours(timestamp, hours) / addMinutes(timestamp, minutes)
Examples
wdl
addHours(utcNow(), -2)
→ Two hours ago
A common "recheck later" delay target.
wdl
addMinutes(utcNow(), 15)
→ A timestamp 15 minutes from now
wdl
convertFromUtc(addHours(utcNow(), -8), 'Pacific Standard Time')
→ The local time 8 hours before now
Common mistakes & gotchas
- Like addDays(), both accept negative values to subtract time — there is no separate subtractHours()/subtractMinutes() function.
- Both add to a UTC-based timestamp by default — convert to local time with convertFromUtc()/convertTimeZone() after adding, not before.
Related Workflow Definition Language functions
From Date & time