00001 #ifndef MFC_CONVERTERS_CLASS
00002 #define MFC_CONVERTERS_CLASS
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include <basis/portable.h>
00019 #include <basis/earth_time.h>
00020
00022
00023 namespace mfc_converters
00024 {
00025 #ifdef _AFXDLL
00026 earth_time::time_locus to_time_locus(const CTime &t) {
00027 return earth_time::time_locus(
00028 earth_time::clock_time(t.GetHour(), t.GetMinute(), t.GetSecond()),
00029 earth_time::day_in_year(earth_time::months(t.GetMonth()), t.GetDay()),
00030 t.GetYear());
00031 }
00032
00033 CTime to_CTime(const earth_time::time_locus &t) {
00034 return CTime(t.year, t.month, t.day_in_month, t.hour, t.minute, t.second);
00035 }
00036 #endif
00037 };
00038
00039 #endif
00040