14.12.2018, 09:41
rscalc return values are in minutes starting from 0:00. You can convert these value to timestamps like this:
Code:
date = os.date('*t')
date.hour = 0
date.sec = 0
date.min = 0
-- timestamp of 0:00 today
time = os.time(date)
sunrise_time = time + sunrise * 60
sunset_time = time + sunset * 60