Skip to main content
Time of day representation (hours and minutes, with optional seconds/nanos). Used for defining shift start/end times and semantic time boundaries. Hours are in 24-hour format (0-23).

Example

const morningStart: TimeOfDay = {
  hours: 9,
  minutes: 0,
};

const afternoonEnd: TimeOfDay = {
  hours: 17,
  minutes: 30,
};

Properties

hours
number
required
minutes
number
required
nanos
number
seconds
number