Skip to content

timeGreaterThan ​

timeGreaterThan() checks whether a wrapped Time is strictly greater than a threshold (wrapped Time or DDate.TheTime). Supports the curried version.

Interactive example ​

Syntax ​

Classic signature ​

typescript
function timeGreaterThan(
	primitive: Time, 
	threshold: Time | TheTime
): boolean

Curried signature ​

typescript
function timeGreaterThan(
	threshold: Time | TheTime
): (primitive: Time) => boolean

Parameters ​

  • primitive: wrapped Time (classic signature only).
  • threshold: comparison threshold.

Return value ​

true if primitive > threshold, otherwise false.

See also ​

Released under the MIT license.