With two change-over microswitches (NC -C-NO) you can simply wire the actuator across the common 'C' tags and cross over the Normally Closed 'NC' and normally Open 'NO' tags so it automatically reverses at each end of the travel. You can then pulse it from any timer, even a 555 would do. It would go backwards at the same rate it goes forward which might be a problem if you are away from the equator where the difference in daytime and nighttime varies far more throughout the year.
I have a similar system here for controlling lighting, I use an ESP8266 module and a cheap DS3231 clock module. In theory it keeps time accurate to two minutes per year but my code resets the clock every day to NTP using a WiFi connection. The software calculates the sunrise time and sunset time based on my longitude and latitude. As I am 52 degrees North, the time between sunrise and sunset varies between just over 7 hours in Winter to over 16 hours in summer.
If you do use a software timer as suggested in post #8, make sure the timing interval is stable, preferably crystal controlled or the time the counter resets will gradually drift and over long periods you might even see it resetting in daylight hours.
Brian.