| version 1.2, 2005/11/07 20:37:29 |
version 1.3, 2005/11/25 09:49:50 |
|
|
| <?php |
<?php |
| |
|
| /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ |
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ |
| |
// |
| |
// +----------------------------------------------------------------------+ |
| |
// | Copyright (c) 1997-2005 Leandro Lucarella, Pierre-Alain Joye | |
| |
// +----------------------------------------------------------------------+ |
| |
// | This source file is subject to the New BSD license, That is bundled | |
| |
// | with this package in the file LICENSE, and is available through | |
| |
// | the world-wide-web at | |
| |
// | http://www.opensource.org/licenses/bsd-license.php | |
| |
// | If you did not receive a copy of the new BSDlicense and are unable | |
| |
// | to obtain it through the world-wide-web, please send a note to | |
| |
// | pear-dev@lists.php.net so we can mail you a copy immediately. | |
| |
// +----------------------------------------------------------------------+ |
| |
// | Author: Baba Buehler <baba@babaz.com> | |
| |
// | Pierre-Alain Joye <pajoye@php.net> | |
| |
// +----------------------------------------------------------------------+ |
| |
|
| /** |
/** |
| * Generic time span handling class for PEAR |
* Generic time span handling class for PEAR |
| * |
* |
| * PHP versions 4 and 5 |
* PHP versions 4 and 5 |
| * |
* |
| * LICENSE: This source file is subject to version 2.02 of the PHP license |
|
| * that is available through the world-wide-web at the following URI: |
|
| * http://www.php.net/license/2_02.txt. If you did not receive a copy of |
|
| * the PHP License and are unable to obtain it through the web, please |
|
| * send a note to license@php.net so we can mail you a copy immediately. |
|
| * |
|
| * @category Date and Time |
* @category Date and Time |
| * @package Date |
* @package Date |
| * @author Leandro Lucarella <llucax@php.net> |
* @author Leandro Lucarella <llucax@php.net> |
| * @copyright 1997-2005 The PHP Group |
* @author Pierre-Alain Joye <pajoye@php.net> |
| * @license http://www.php.net/license/2_02.txt PHP License |
* @copyright 1997-2005 Leandro Lucarella, Pierre-Alain Joye |
| |
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License |
| * @version CVS: $Id$ |
* @version CVS: $Id$ |
| * @link http://pear.php.net/package/Date |
* @link http://pear.php.net/package/Date |
| * @since File available since Release 1.4 |
* @since File available since Release 1.4 |
| Line 67 $GLOBALS['_DATE_SPAN_FORMAT'] = '%C'; |
|
| Line 76 $GLOBALS['_DATE_SPAN_FORMAT'] = '%C'; |
|
| * |
* |
| * @global mixed |
* @global mixed |
| */ |
*/ |
| $GLOBAL['_DATE_SPAN_INPUT_FORMAT'] = DATE_SPAN_INPUT_FORMAT_NNSV; |
$GLOBALS['_DATE_SPAN_INPUT_FORMAT'] = DATE_SPAN_INPUT_FORMAT_NNSV; |
| |
|
| /** |
/** |
| * Generic time span handling class for PEAR |
* Generic time span handling class for PEAR |
| * |
* |
| * @author Leandro Lucarella <llucax@php.net> |
* @author Leandro Lucarella <llucax@php.net> |
| * @copyright 1997-2005 The PHP Group |
* @copyright 1997-2005 The PHP Group |
| * @license http://www.php.net/license/2_02.txt PHP License |
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License |
| * @version Release: 1.4.5 |
* @version Release: 1.4.6 |
| * @link http://pear.php.net/package/Date |
* @link http://pear.php.net/package/Date |
| * @since Class available since Release 1.4 |
* @since Class available since Release 1.4 |
| * |
* |
| Line 464 class Date_Span { |
|
| Line 473 class Date_Span { |
|
| * |
* |
| * Set the span from the elapsed time between two dates. The time span |
* Set the span from the elapsed time between two dates. The time span |
| * is allways positive, so the date's order is not important. |
* is allways positive, so the date's order is not important. |
| * |
* |
| * @param object Date $date1 First Date. |
* @param object Date $date1 First Date. |
| * @param object Date $date2 Second Date. |
* @param object Date $date2 Second Date. |
| * |
* |
| Line 948 class Date_Span { |
|
| Line 957 class Date_Span { |
|
| return $s; |
return $s; |
| } |
} |
| } |
} |
| |
|
| ?> |
|