Skip to main content

durationFormatGreaterThan

Stentor API Reference


Stentor API Reference / stentor-utils/src / durationFormatGreaterThan

Function: durationFormatGreaterThan()

durationFormatGreaterThan(one, two): boolean

Defined in: packages/stentor-utils/src/date-time/durationFormatGreaterThan.ts:57

Compare two duration formats stentor-models#DurationFormat is greater than the other.

For example, a year is greater than a month.

Parameters​

one​

DurationFormat

two​

DurationFormat

Returns​

boolean