00001 #ifndef _WINC_DATERANGE
00002 #define _WINC_DATERANGE
00003
00004 #include <WXP/Date.h>
00005
00006 namespace WXP {
00007 class DateRange {
00008 int secs;
00009 int pre;
00010 int post;
00011
00012 public:
00013 DateRange();
00014 DateRange( Date &rdate, int rpre, int rpost );
00015 int set( Date &rdate, int rpre, int rpost );
00016 int set( int rpre, int rpost );
00017 int set( Date &rdate );
00018 int init();
00019 bool valid( Date &date );
00020 bool valid( int secs );
00021 int print();
00022 };
00023 }
00024 #endif