Time range with start and end moments.
Represents a period when a POI is open. Can span multiple days (e.g., opening late one day and closing early the next).
// Monday 9:00 AM to 5:00 PMconst timeRange: TimeRange = { start: { date: new Date('2025-10-20T09:00:00'), hour: 9, minute: 0, ... }, end: { date: new Date('2025-10-20T17:00:00'), hour: 17, minute: 0, ... }};// Friday 10 PM to Saturday 2 AM (overnight)const overnight: TimeRange = { start: { date: new Date('2025-10-24T22:00:00'), hour: 22, ... }, end: { date: new Date('2025-10-25T02:00:00'), hour: 2, ... }}; Copy
// Monday 9:00 AM to 5:00 PMconst timeRange: TimeRange = { start: { date: new Date('2025-10-20T09:00:00'), hour: 9, minute: 0, ... }, end: { date: new Date('2025-10-20T17:00:00'), hour: 17, minute: 0, ... }};// Friday 10 PM to Saturday 2 AM (overnight)const overnight: TimeRange = { start: { date: new Date('2025-10-24T22:00:00'), hour: 22, ... }, end: { date: new Date('2025-10-25T02:00:00'), hour: 2, ... }};
Closing time for this period.
Opening time for this period.
Time range with start and end moments.
Represents a period when a POI is open. Can span multiple days (e.g., opening late one day and closing early the next).
Remarks
Example