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-12-10 10:29:00"
  ["current_timestamp"]=>
  int(1702168140)
  ["sunrise_today_timestamp"]=>
  int(1702150746)
  ["sunrise_today"]=>
  string(19) "2023-12-10 05:39:06"
  ["sunrise_tomorrow_timestamp"]=>
  int(1702237159)
  ["sunrise_tomorrow"]=>
  string(19) "2023-12-11 05:39:19"
  ["next_sunrise_timestamp"]=>
  int(1702237159)
  ["next_sunrise"]=>
  string(19) "2023-12-11 05:39:19"
  ["seconds_to_next_sunrise"]=>
  int(69019)
  ["minutes_to_next_sunrise"]=>
  float(1150.3166666666666)
  ["hours_to_next_sunrise"]=>
  float(19.171944444444442)
  ["offset"]=>
  int(1)
}

Minutes till byron bay sunrise offset = 0

1090.3166666667

Minutes till byron bay sunrise offset = 1 hour

1150.3166666667

Minutes till byron bay sunrise offset = -1 hour

1030.3166666667