cvs: pear /Services_Weather/examples php_sunrise_sunset.php
| From: | Alexander Wirtz | Date: | Thu, 21 Jul 2005 07:49:07 +0000 |
| Subject: | cvs: pear /Services_Weather/examples php_sunrise_sunset.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-33190@lists.php.net to get a copy of this message | ||
eru Thu Jul 21 03:49:07 2005 EDT
Modified files:
/pear/Services_Weather/examples php_sunrise_sunset.php
Log:
Remove unneccessary break in switch
http://cvs.php.net/diff.php/pear/Services_Weather/examples/php_sunrise_sunset.php?r1=1.3&r2=1.4&ty=u
Index: pear/Services_Weather/examples/php_sunrise_sunset.php
diff -u pear/Services_Weather/examples/php_sunrise_sunset.php:1.3
pear/Services_Weather/examples/php_sunrise_sunset.php:1.4
--- pear/Services_Weather/examples/php_sunrise_sunset.php:1.3 Wed Jul 14 07:16:05 2004
+++ pear/Services_Weather/examples/php_sunrise_sunset.php Thu Jul 21 03:49:07 2005
@@ -16,7 +16,7 @@
// | Authors: Alexander Wirtz <alex@pc4p.net> |
// +----------------------------------------------------------------------+
//
-// $Id: php_sunrise_sunset.php,v 1.3 2004/07/14 11:16:05 eru Exp $
+// $Id: php_sunrise_sunset.php,v 1.4 2005/07/21 07:49:07 eru Exp $
// The sun position algorithm taken from the 'US Naval Observatory's
// Almanac for Computers', implemented by Ken Bloom <kekabloom@ucdavis.edu>
@@ -178,14 +178,11 @@
switch ($retformat) {
case SUNFUNCS_RET_TIMESTAMP:
return floor($time - ($time % (24 * 3600))) + floor(60 * $ret);
- break;
case SUNFUNCS_RET_STRING:
$N = floor($ret);
return sprintf("%02d:%02d", $N, floor(60 * ($ret - $N)));
- break;
case SUNFUNCS_RET_DOUBLE:
return $ret;
- break;
default:
trigger_error("invalid format", E_USER_WARNING);
return false;