Determining Day/Night time in an app


I want to put simple sun and moon images depending on the time of the day (sun during daytime, moon during nighttime) but I'm having trouble doing so with Clock.

any help is appreciated

What trouble are you having? Please show your relevant blocks / what you have tried so far...

This example can calculate the sun rise / sunset line HOW TO: Plot Sunrise/Sunset line on a Map and learn how to use equations

The tutorial might be useful to determine what is daytime and what is nighttime on any point on the planet and at any time of the year without an ephemeris.