add funcs to handle day begin times