MCPcopy Index your code
hub / github.com/simstudioai/sim / isStrictlyWithin

Function isStrictlyWithin

packages/emcn/src/components/calendar/calendar.tsx:114–119  ·  view source on GitHub ↗
(date: Date, start: Date, end: Date)

Source from the content-addressed store, hash-verified

112}
113
114function isStrictlyWithin(date: Date, start: Date, end: Date): boolean {
115 const time = date.getTime()
116 const lo = Math.min(start.getTime(), end.getTime())
117 const hi = Math.max(start.getTime(), end.getTime())
118 return time > lo && time < hi
119}
120
121/** Reads the `HH:mm` slice from a `YYYY-MM-DDTHH:mm` value, or a fallback. */
122function extractTime(value: string | Date | undefined, fallback: string): string {

Callers 1

RangeCalendarViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected