How does the dusk to dawn rule work?

There is an extensive thread on this you may find helpful