Delray South Shore Club
1625 S. Ocean Blvd.
Delray Beach, FL 33483

Time and Tides

Details

Right now it's 8:55 am, Sunday, May 19, 2019.

Lake Worth Pier, FL - Station ID: 8722670

Surf

Sun and Moon Data

moondata; $sun=$sun_moon_object->sundata; $phase=$sun_moon_object->closestphase; echo '
';
echo $phase;
//var_dump($sun_moon_object);
//var_dump($moon);
var_dump($phase);
//var_dump($sun);
echo '
'; */ class sun_moon { public $date; public $lat; public $lon; public $url; public $offset; public $sunrise; public $local_noon; public $sunset; public $moonrise; public $moon_upper_transit; public $moonset; public $closest_phase; public $closest_phase_date; public $closest_phase_time; public $previous_moon_rising; public $previous_moon_setting; public $current_phase; public $fraction_illuminated; public function __construct($date, $lat, $lon, $offset,$DST=TRUE) { //daylight saving time? if(date('I', time()) && $DST){$offset=$offset+1;} $this->url ="http://api.usno.navy.mil/rstt/oneday?date=$date&coords=$lat,$lon&tz=$offset"; $JSON_string=file_get_contents($this->url); $sun_moon_object=json_decode($JSON_string); //var_dump($sun_moon_object); foreach($sun_moon_object->sundata as $item) { if($item->phen=="R") {$this->sunrise=date('g:i a',strtotime($item->time));} if($item->phen=="U") {$this->local_noon=date('g:i a',strtotime($item->time));} if($item->phen=="S") {$this->sunset=date('g:i a',strtotime($item->time));} } foreach($sun_moon_object->moondata as $item) { if($item->phen=="U") {$this->moon_upper_transit=date('g:i a',strtotime($item->time));} if($item->phen=="S") {$this->moonset=date('g:i a',strtotime($item->time));} if($item->phen=="R") {$this->moonrise=date('g:i a',strtotime($item->time));} } foreach($sun_moon_object->prevmoondata as $item) { if($item->phen=="S") {$this->previous_moon_setting=date('g:i a',strtotime($item->time));} if($item->phen=="R") {$this->previous_moon_rising=date('g:i a',strtotime($item->time));} } $this->closest_phase=$sun_moon_object->closestphase->phase; $this->closest_phase_date=$sun_moon_object->closestphase->date; $this->closest_phase_time=$sun_moon_object->closestphase->time; $this->fraction_illuminated=$sun_moon_object->fracillum; $this->current_phase=$sun_moon_object->curphase; } }//END CLASS //21.3000° N, 157.8167° W //$honolulu=new sun_moon('today', 21.3000, -157.8167,-10); /* $kaanipali=new sun_moon('today', 45.52, -122.65,-7); echo $kaanipali->url; echo '
';
var_dump($kaanipali->sunrise);
echo '
'; echo '
'; echo '
'; echo 'sunrise '. $kaanipali->sunrise; echo '
'; echo 'local noon '.$kaanipali->local_noon; echo '
'; echo 'sunset '. $kaanipali->sunset; echo '
'; echo 'moonrise '. $kaanipali->moonrise; echo '
'; echo 'moon transit '.$kaanipali->moon_upper_transit; echo '
'; echo 'moon set '. $kaanipali->moonset; echo '
'; echo 'closest phase '. $kaanipali->closest_phase; echo '
'; echo 'closest phase date '. $kaanipali->closest_phase_date; echo '
'; echo 'closest phase time '. $kaanipali->closest_phase_time; echo '
'; echo 'fraction illuminated '. $kaanipali->fraction_illuminated; echo '
'; echo 'phase '. $kaanipali->current_phase; echo '
'; echo 'previous rising '. $kaanipali->previous_moon_rising; echo '
'; echo 'previous setting '. $kaanipali->previous_moon_setting; $del_ray=new sun_moon('today', 26.441013, -80.060569,-5); echo 'sunrise '. $del_ray->sunrise; */ ?>