Skip to content

greaterTime

The greaterTime() function checks if a TheTime is strictly greater than a threshold.

Interactive example

Syntax

Standard signature

typescript
function greaterTime<
	GenericInput extends TheTime
>(
	input: GenericInput,
	threshold: TheTime
): boolean

Curried signature

typescript
function greaterTime<
	GenericInput extends TheTime
>(
	threshold: TheTime
): (input: GenericInput) => boolean

Parameters

  • threshold: Comparison duration.
  • input: Duration to test (standard signature).

Return value

true if input is strictly greater than threshold.

See also

Released under the MIT license.