In a logic diagram, is there a way to tell if it's "night time". I found a rather complicated way to do it using several function blocks (Time, Sunset, Sunrise, LT, GT, and Or), but I'm hoping there's an easier way that I've overlooked.

If I end up using the above function blocks, I've noticed something wrong with the Sunset and Sunrise function blocks. In the Baltimore MD area, on 12/18/2010 sunrise and sunset are supposed to be 7:21 AM and 4:45 PM, respectively. However, the times in the Sunrise and Sunset function blocks are 8:43:57 AM and 5:49:26 PM, respectively. If it was off by exactly an hour, I might suspect a DST problem, but that doesn't appear to be the case.
Any help on either of these points would be appreciated.
Thanks,
Mark

If I end up using the above function blocks, I've noticed something wrong with the Sunset and Sunrise function blocks. In the Baltimore MD area, on 12/18/2010 sunrise and sunset are supposed to be 7:21 AM and 4:45 PM, respectively. However, the times in the Sunrise and Sunset function blocks are 8:43:57 AM and 5:49:26 PM, respectively. If it was off by exactly an hour, I might suspect a DST problem, but that doesn't appear to be the case.
Any help on either of these points would be appreciated.
Thanks,
Mark