Day/Night LDR sensing code. What is the correct approach to sampling day/night.

I realize this is an old post, but I hope you still participate. these questions are along the line of the same thing I would like to accomplish. and I "may" be able to afford you. we'll see! I build analog components, I am new to the arduino forum. I am looking for help in respect to turning an arduino nano ON, using a LDR. basically, on at night, off at day light. if you are still alive and participating please post.