Sample Page

The next sunrise will be in

Hours
Minutes
Seconds

Debug Data For Testing Below

array(15) {
  ["sunrise"]=>
  string(33) "The next sunrise will be tomorrow"
  ["latitide"]=>
  float(-28.64401)
  ["longitude"]=>
  float(153.61234)
  ["current_time"]=>
  string(19) "2023-03-26 09:11:00"
  ["current_timestamp"]=>
  int(1679785860)
  ["sunrise_today_timestamp"]=>
  int(1679777452)
  ["sunrise_today"]=>
  string(19) "2023-03-26 06:50:52"
  ["sunrise_tomorrow_timestamp"]=>
  int(1679863885)
  ["sunrise_tomorrow"]=>
  string(19) "2023-03-27 06:51:25"
  ["next_sunrise_timestamp"]=>
  int(1679863885)
  ["next_sunrise"]=>
  string(19) "2023-03-27 06:51:25"
  ["seconds_to_next_sunrise"]=>
  int(78025)
  ["minutes_to_next_sunrise"]=>
  float(1300.4166666666667)
  ["hours_to_next_sunrise"]=>
  float(21.67361111111111)
  ["offset"]=>
  int(1)
}

Minutes till byron bay sunrise offset = 0

1240.4166666667

Minutes till byron bay sunrise offset = 1 hour

1300.4166666667

Minutes till byron bay sunrise offset = -1 hour

1180.4166666667