Is this driving pattern legal?

I get the feeling that the OP thinks a new 24 hour clock starts every midnight therefore cleaning the sale of everything before that … just my gut feeling on this …