Fetch informations related to the solar rotation around the earth
from https://sunrise-sunset.org/
-
convert_data(data)[source]
Extend api data with some needed converted data
-
fetch()[source]
Get data from the api plus some converted data
-
time_in_seconds(data)[source]
Convert a datetime to seconds since the start of the day
-
time_to_localtime(data)[source]
Convert from a time UTC to a datetime in locale TZ a format like “08:42:01 PM”