1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #ifndef TIMEZONE_UTIL_H
- #define TIMEZONE_UTIL_H
- #include <kopano/zcdefs.h>
- namespace KC {
- struct TIMEZONE_STRUCT {
-
-
- LONG lBias;
- LONG lStdBias;
- LONG lDstBias;
- WORD wStdYear;
- SYSTEMTIME stStdDate;
- WORD wDstYear;
- SYSTEMTIME stDstDate;
- };
- time_t getDateByYearMonthWeekDayHour(WORD year, WORD month, WORD week, WORD day, WORD hour);
- LONG getTZOffset(time_t date, TIMEZONE_STRUCT sTimeZone);
- extern _kc_export time_t LocalToUTC(time_t local, TIMEZONE_STRUCT);
- extern _kc_export time_t UTCToLocal(time_t utc, TIMEZONE_STRUCT);
- }
- #endif
|