Skip to content

addMinutes

addMinutes(datetime, count) → datetime · Date & Time

Add (or subtract) minutes to a datetime.

  • datetime (required): the starting datetime

  • count (required): number of minutes to add. Negative to subtract.

utlx
addMinutes(now(), 90)                    // 1.5 hours from now
addMinutes(now(), -30)                   // 30 minutes ago

Released under AGPL-3.0.