Here are my program statements:
If Sun -120/120 Then ACT ON
If Sun -030/030 Then ML1 ON
If Sun 120/-120 Then ML2 ON
If Sun -075/075 Then MLS OFF
Actinics come on 2 hours (120 mins) before my sunrise time and go off 2 hours after my sunset time.
ML1 come on 30 mins before my sunrise time and go off 30 mins after my sunset time.
ML2 come on 2 hours after my sunrise time and go off 2 hours before my sunset time
and
MLS refugium lights Come on 75 mins after sunset and go off 75 mins after sunrise.
My times may be confusing but the statements are what you are looking for (my sunrise and sunset are shifted to give me what I want ~12 hours average of lighting per day... more in the tanks summer time (winter), less in the the tanks winter (summer time).
See my website for more info:
http://www.danj.com/reef
Dave