Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields  

Date.h

00001 /*
00002  * $Id: Date.h,v 1.6 2003/08/15 19:52:36 mindstorm2600 Exp $
00003  *
00004  *                 Juan V. Guerrero <mindstorm2600@users.sourceforge.net>
00005  */
00006 #ifndef __CLAW_DATE_H__
00007 #define __CLAW_DATE_H__
00008 #include<System.h>
00009 #include<time.h>
00010 #include<String.h>
00011 
00012 namespace clawsoft{
00013         
00017         class Date:public System{
00018                 protected:
00020                         time_t unixtime;
00023                         String drep;
00024                         void setTStamp(Uint32 tstamp);
00025                 public:
00026                         enum DateAMPM{
00027                                 AM,
00028                                 PM
00029                         };
00031                         int hour;
00033                         int hr12hour;
00035                         int minute;
00037                         int second;
00039                         int dayofweek;
00041                         int dayofyear;
00043                         int dayofmonth;
00045                         int month;
00047                         int year;
00049                         int hr12ampm;
00050 
00052                         Date();
00056                         Date(Uint32 __unixtime);
00066                         Date(int __y, int __m, int __dw, int __dm, int __h, int __mi, int __s = 0);
00067                         virtual ~Date();
00069                         virtual time_t getCurrentTime();
00070                         
00073                         const Uint32 unixTime();
00078                         virtual const String &toString();
00079         };
00080 
00081 };
00082 
00083 
00084 #endif

Authors:

Juan V. Guerrero
Jannette C. Mejia
Juan C. Guevara

Powered by:

SourceForgeLogo