I am trying to calculate the time between two values.
echo date("g:i a", (strtotime($moonrise) + strtotime($moonset))/2)
This is working well, however I am running into an issue if the moon sets the following day (EG 12.30am +1day).
Any suggestions as to how to solve this? I tried adding tomorrow / +1day but didnt seem to make a difference?
Cheers!