You can use the library to get UTC and local time sunrise and sunset times typing: import datetime from dateutil import tz from suntime import Sun, SunTimeException warsaw_lat = 51.21 warsaw_lon = ...