Hex Core JS
    Preparing search index...

    Function isTimeBetween

    • Determines whether a given date lies between given start and end dates. Accepts options for whether each side is inclusive or exclusive. Defaults to inclusive on both ends.

      Parameters

      • date: DateTime

        The date to check

      • start: DateTime

        The start date

      • end: DateTime

        The end date

      • precision: DateTimePrecision = "second"

        The granularity to use for comparison. Defaults to "second"

      • boundaryOptions: Partial<BoundaryOptions> = {}

        Options for including or excluding the start and end points. Defaults to inclusive on both ends.

      Returns boolean