Changeset 520711
- Timestamp:
- 03/19/2012 04:28:13 AM (14 years ago)
- Location:
- sunrise-sunset/trunk
- Files:
-
- 2 edited
-
cities.txt (modified) (1 diff)
-
sunrisesunset.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sunrise-sunset/trunk/cities.txt
r519692 r520711 1 Arizona:America/Phoenix:33.29:-122.04 2 Atlanta:America/New_York:33.65:-84.42 3 Charlotte,NC:America/New_York:35.22:-80.93 1 4 Chicago:America/Chicago:41.51:-87.39 2 Arizona:US/Arizona:33.29:-122.04 5 Crossville,TN:America/Chicago:35.95:-85.08 3 6 Los Angeles:America/Los_Angeles:34.30:-118.15 7 Lexington, KY:America/New_York:38.05:-85.00 8 Miami:America/New_York:25.82:-80.28 9 Nashville,TN:America/Chicago:36.12:-86.68 10 Orland:America/New_York:28.55:-81.33 11 Richmond,VA:America/New_York:37.50:-77.33 12 Roanoke Muni,VA:America/New_York:37.32:-79.97 -
sunrise-sunset/trunk/sunrisesunset.php
r519692 r520711 54 54 private function populateLatLong() 55 55 { 56 57 // $longitude = array('America/Chicago' => -87.39, 'America/Los_Angeles' => -118.15, 'America/New_York' => -73.58, 'US/Arizona' => -122.04);58 59 56 foreach ($this->_cities as $city) { 60 57 $this->_latitude[$city->getTimezone()] = $city->getLatitude(); … … 139 136 echo "Sunset:" . $result['sunset']; 140 137 138 // echo print_r(DateTimeZone::listAbbreviations()); 139 141 140 echo $after_widget; 142 141 } … … 145 144 function ss_get_sunset($instance) 146 145 { 147 148 // $latitude = populateLatitude();149 //150 // $longitude = array('America/Chicago' => -87.39, 'America/Los_Angeles' => -118.15, 'America/New_York' => -73.58, 'US/Arizona' => -122.04);151 152 146 $target_time_zone = $instance['timezone']; 153 147 $time_format = 'h:i A T'; // 08:53 PM PDT
Note: See TracChangeset
for help on using the changeset viewer.