Companion

object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun calculateDaysBetween(startDate: LocalDate, endDate: LocalDate, dcbYear: DayCountBasisYear, dcbDay: DayCountBasisDay): Int
Link copied to clipboard
fun createGenericSchedule(startDate: LocalDate, period: Frequency, calendar: BusinessCalendar = EMPTY, dateRollConvention: DateRollConvention = DateRollConvention.Following, noOfAdditionalPeriods: Int = Integer.MAX_VALUE, endDate: LocalDate? = null, periodOffset: Int? = null): List<LocalDate>

Calculates an event schedule that moves events around to ensure they fall on working days.

Link copied to clipboard
fun getOffsetDate(startDate: LocalDate, period: Frequency, steps: Int = 1): LocalDate

Calculates the date from @startDate moving forward 'steps' of time size 'period'. Does not apply calendar logic / roll conventions.

Link copied to clipboard

Parses a date of the form YYYY-MM-DD, like 2016-01-10 for 10th Jan.