I just adjusted a couple of things in Ben’s example above (like checking for Sunday).
On those seconds_since_midnight values to compare (at 6:45 & 19:00), I’d be inclined to make those (persistent) variables instead of hard-coded so you could adjust them without changing the program.
Also note that this logic assumes we’re looping around checking all this at least every second (every 500 milliseconds might be better). Otherwise we might miss those specific values!
I might also change:
digital_point = 1;
to: TurnOn( digital_point );
and
digital_point = 0;
to: TurnOff( digital_point );