Virtual U.org
Get Personal Training on VU Today
    
Top shadow
 
 register/help
User Name:

Password:

ODATE.H Source File
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

ODATE.H

Go to the documentation of this file.
00001 //Filename    : ODATE.H
00002 //Description : Header file of object date information
00003 
00004 #ifndef __ODATE_H
00005 #define __ODATE_H
00006 
00007 //#ifndef __ALL_H
00008 //#include <ALL.H>
00009 //#endif
00010 #ifndef __WINDOWS_
00011 #include <windows.h>
00012 #endif
00013 
00016 class DateInfo {
00017 public:
00018 
00019     long  julian(int,int,int);
00020     long  julian(char*);
00021 
00022     char* date_str(long,int=0,int=1);
00023     char* month_str(int);
00024 
00025     int   year(long julianDate)  { return get_date(julianDate,'Y'); }
00026     int   month(long julianDate) { return get_date(julianDate,'M'); }
00027     int   day(long julianDate)   { return get_date(julianDate,'D'); }
00028 
00029     char* time_str(int);
00030     int   days_in_month(int);
00031     int   day_year(int,int,int);
00032 
00033     int   add_months(int inDate, int addMonth);
00034 
00035     int file_time_to_julian(FILETIME& fileTime);
00036     int  get_date(long,char);
00037 
00038 private:
00039     long ytoj(int);
00040     int  month_day(int,int,int&,int&);
00041     //   int  get_date(long,char);
00042 };
00043 
00044 extern DateInfo date;
00045 #endif

Generated on Fri Aug 23 01:37:20 2002 for VirtualU by doxygen1.2.17