Fuel Prices API Developer's Guide

OpeningHoursDetailsType

OpeningHoursDetailType defines opening hours for each day of week, supporting several time periods within one day.

Table 1. OpeningHoursDetailType elements
Element Data Type Mandatory Description
daymask Integer No A mask representing the days of the week as an 8-bit integer mask.

The following values indicate the following days

  • 1Sunday
  • 2Monday
  • 4Tuesday
  • 8Wednesday
  • 16Thursday
  • 32Friday
  • 64Saturday

Combinations of days can be derived by adding the values together, for example:62 equals Monday, Tuesday, Wednesday, Thursday, Friday (2+4+8+16+32). and 127 equals Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday (1+2+4+8+16+32+64).

period TimePeriodType No Opening time period