UnitPeriod Module
an unambiguous way to represent regular date intervals and generate schedules based on them note: unit-period definitions are based on US federal legislation but the definitions are universally applicable
Types and nested modules
Type/Module | Description |
Functions and values
Function or value | Description |
|
|
Full Usage:
commonLengths lengths
Parameters:
int array
Returns: (int * int)[]
|
|
Full Usage:
detect direction interval transferDates
Parameters:
Direction
interval : UnitPeriod
transferDates : Date array
Returns: Config
|
|
Full Usage:
maxPaymentCount maxDuration config
Parameters:
int<MeasureProduct<DurationDay, MeasureOne>>
config : Config
Returns: int
|
|
Full Usage:
nearest term advanceDates paymentDates
Parameters:
TransactionTerm
advanceDates : Date[]
paymentDates : Date[]
Returns: UnitPeriod
|
|
|
|
|
|
Full Usage:
transactionTerm consummationDate firstFinanceChargeEarnedDate lastPaymentDueDate lastAdvanceScheduledDate
Parameters:
Date
firstFinanceChargeEarnedDate : Date
lastPaymentDueDate : Date
lastAdvanceScheduledDate : Date
Returns: TransactionTerm
|
|