Skip to content

greaterTime ​

The greaterTime() function checks if a TheTime is greater than or equal to a threshold.

Interactive example ​

Syntax ​

Standard signature ​

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

Curried signature ​

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

Parameters ​

  • threshold: Comparison duration.
  • input: TheTime or SerializedTheTime.

Return value ​

true if input is greater than or equal to threshold.

See also ​

Released under the MIT license.