<?php /* vim: set binary expandtab tabstop=4 shiftwidth=4 textwidth=80:
-------------------------------------------------------------------------------
- Ministerio de EconomÃa
- meconlib
+ mlib
-------------------------------------------------------------------------------
-This file is part of meconlib.
+This file is part of mlib.
-meconlib is free software; you can redistribute it and/or modify it under
+mlib is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option)
any later version.
-meconlib is distributed in the hope that it will be useful, but WITHOUT
+mlib is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
$Id$
-----------------------------------------------------------------------------*/
-require_once 'MECON/Tiempo/Hora.php';
+require_once 'MLIB/Tiempo/Hora.php';
/**
* Representa un Intervalo entre 2 horas del mismo dia
* @version $Rev$
* @author Gonzalo Merayo <gmeray@mecon.gov.ar>
*/
-class MECON_Tiempo_Intervalo {
+class MLIB_Tiempo_Intervalo {
/**
*
* Hora de inicio del intervalo
* fin es anterior a la de inicio.
*
*/
- function MECON_Tiempo_Intervalo($inicio = null, $fin = null, $chequear = true)
+ function MLIB_Tiempo_Intervalo($inicio = null, $fin = null, $chequear = true)
{
if (!$inicio) {
- $inicio = new MECON_Tiempo_Hora;
+ $inicio = new MLIB_Tiempo_Hora;
}
if (!$fin) {
- $fin = new MECON_Tiempo_Hora;
+ $fin = new MLIB_Tiempo_Hora;
}
$this->inicio = $inicio;
$this->fin = $fin;
function getDuracion()
{
- $c = new MECON_Tiempo_Hora;
+ $c = new MLIB_Tiempo_Hora;
$c->copy($this->fin);
$c->subtract($this->inicio);
return $c;
*/
function cortar($c)
{
- if(is_a($c, 'mecon_tiempo_hora')) {
+ if(is_a($c, 'MLIB_tiempo_hora')) {
return $this->cortarHora($c);
- } elseif (is_a($c, 'mecon_tiempo_intervalo')) {
+ } elseif (is_a($c, 'MLIB_tiempo_intervalo')) {
return $this->cortarIntervalo($c);
} else {
return false;