Tinghir — sunrise and sunset times

Calculate the sunrise and sunset times in Tinghir, and the day length for any given day of the year.