--- /dev/null
+<?php /* vim: set binary expandtab tabstop=4 shiftwidth=4 textwidth=80:
+-------------------------------------------------------------------------------
+ Ministerio de Economía
+ meconlib
+-------------------------------------------------------------------------------
+This file is part of meconlib.
+
+meconlib 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
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License; if not,
+write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+Boston, MA 02111-1307 USA
+-------------------------------------------------------------------------------
+Creado: vie nov 14 16:40:05 ART 2003
+Autor: Leandro Lucarella <llucar@mecon.gov.ar>
+-------------------------------------------------------------------------------
+$Id: DBO.php 361 2003-10-06 16:56:46Z llucar $
+-----------------------------------------------------------------------------*/
+
+require_once 'Date.php';
+require_once 'Date/Calc.php';
+
+/**
+ * Clase de manejo de fechas con algunos extra features.
+ *
+ * @access public
+ */
+class MECON_Date extends Date {
+
+ /**
+ * Obtiene la fecha de inicio del próximo mes.
+ *
+ * @return MECON_Date.
+ * @access public
+ */
+ function getBeginOfNextMonth()
+ {
+ return new MECON_Date(Date_Calc::beginOfNextMonth(
+ $this->day, $this->month, $this->year, '%Y-%m-%d'));
+ }
+
+ /**
+ * Obtiene la fecha de fin del próximo mes.
+ *
+ * @return MECON_Date.
+ * @access public
+ */
+ function getEndOfNextMonth()
+ {
+ return new MECON_Date(Date_Calc::endOfNextMonth(
+ $this->day, $this->month, $this->year, '%Y-%m-%d'));
+ }
+
+ /**
+ * Obtiene la fecha de inicio del mes anterior.
+ *
+ * @return MECON_Date.
+ * @access public
+ */
+ function getBeginOfPrevMonth()
+ {
+ return new MECON_Date(Date_Calc::beginOfPrevMonth(
+ $this->day, $this->month, $this->year, '%Y-%m-%d'));
+ }
+
+ /**
+ * Obtiene la fecha de fin del mes anterior.
+ *
+ * @return MECON_Date.
+ * @access public
+ */
+ function getEndOfPrevMonth()
+ {
+ return new MECON_Date(Date_Calc::endOfPrevMonth(
+ $this->day, $this->month, $this->year, '%Y-%m-%d'));
+ }
+
+}
+
+?>
\ No newline at end of file