Skip to content

dateAddTime

dateAddTime() adds a duration to a wrapped Date. The duration can be a wrapped Time or a DDate.TheTime. Supports the curried version.

Interactive example

Syntax

Classic signature

typescript
function dateAddTime(
	primitive: Date, 
	time: Time | TheTime
): Date

Curried signature

typescript
function dateAddTime(
	time: Time | TheTime
): (primitive: Date) => Date

Parameters

  • primitive: wrapped Date (classic signature only).
  • time: duration to add.

Return value

A wrapped Date with the duration added.

See also

Released under the MIT license.