Options
All
  • Public
  • Public/Protected
  • All
Menu

Date interval described by a number of a given time unit

Hierarchy

Index

Properties

_endDate

_endDate: Date

_startDate

_startDate: Date

Methods

endDate

  • endDate(): Date
  • Returns Date

equal

  • Parameters

    Returns boolean

init

  • Parameters

    • startDate: Date
    • endDate: Date

    Returns DateInterval

intersection

isDateBetween

  • isDateBetween(date: Date, includeFirst?: boolean, includeLast?: boolean): boolean
  • Parameters

    • date: Date
    • Default value includeFirst: boolean = true
    • Default value includeLast: boolean = true

    Returns boolean

startDate

  • startDate(): Date
  • Returns Date