Skip to content

timeLessThan ​

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

Interactive example ​

Syntax ​

Classic signature ​

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

Curried signature ​

typescript
function timeLessThan(
	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.