00001 /* 00002 * Name: gmt_date.hh 00003 * Author: Francisco Rodrigo Escobedo Robles 00004 * Contributor: Rafael Jesus Alcantara Perez 00005 * Summary: Gmt date class 00006 * Date: $Date: 2003/08/08 23:30:34 $ 00007 * Revision: $Revision: 1.2 $ 00008 * 00009 * Copyright (C) 2000 Francisco Rodrigo Escobedo Robles <frer@pepix.net> 00010 * Copyright (C) 2002 Rafael Jesus Alcantara Perez <rafa@dedalo-ing.com> 00011 * 00012 * This program is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License as published by 00014 * the Free Software Foundation; either version 2 of the License, or 00015 * (at your option) any later version. 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU General Public License 00023 * along with this program; if not, write to the Free Software 00024 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 00025 * MA 02111-1307, USA. 00026 */ 00027 00028 #ifndef _MPCL_TEXT_GMT_DATE__ 00029 #define _MPCL_TEXT_GMT_DATE__ 00030 00031 #include "date.hh" 00032 #include "string.hh" 00033 00034 00036 namespace mpcl 00037 { 00038 00040 namespace text 00041 { 00042 00046 class TGmtDate : public IDate 00047 { 00048 00049 public: 00050 00051 // 00052 // C O N S T R U C T O R S 00053 // 00054 00064 TGmtDate ( const int kiYEAR , 00065 const int kiMONTH , 00066 const int kiDAY , 00067 const int kiHOUR = 0 , 00068 const int kiMINUTES = 0 , 00069 const int kiSECONDS = 0 ) : 00070 IDate ( kiYEAR , 00071 kiMONTH , 00072 kiDAY , 00073 kiHOUR , 00074 kiMINUTES , 00075 kiSECONDS ) {} 00076 00082 TGmtDate (const EDateType keDATE_TYPE = eNow) 00083 throw (TConstraintException) : 00084 IDate (keDATE_TYPE) {} 00085 00086 00087 public: 00088 00089 // 00090 // S E L E C T O R S 00091 // 00092 00097 TString get (const char* pkcDATE_FORMAT) const; 00098 00099 }; // class TGmtDate 00100 00101 } // namespace text 00102 00103 } // namespace mpcl 00104 00105 00106 #endif // not _MPCL_TEXT_GMT_DATE__