8 short StdOffset, DSTOffset;
9 dword UTCTime, DSTStartUTC, DSTEndUTC;
21 UTCTime =
AddTime(LocalTime, -StdOffset);
22 if(DST) UTCTime =
AddTime(UTCTime, -60);
45 UTCTime =
AddTime(LocalTime, -StdOffset);
46 if(DSTStartUTC < DSTEndUTC)
52 if((UTCTime >= DSTStartUTC) && (UTCTime < DSTEndUTC)) DSTOffset = 60;
60 if((UTCTime >= DSTEndUTC) && (UTCTime < DSTStartUTC)) DSTOffset = 0;
63 if(Offset) *Offset = StdOffset + DSTOffset;
64 ret =
AddTime(UTCTime, -DSTOffset);
void DST_GetDefaultDSTRule(void)
void DST_GetTransitions_Europe(dword *DSTStartUTC, dword *DSTEndUTC, dword StartDate)
void DST_GetTransitions_Manual(dword *DSTStartUTC, dword *DSTEndUTC)
dword LocalTime2UTC(dword LocalTime, short *Offset)
dword AddTime(dword pvrDate, int addMinutes)
bool GetCurrentTimeZone(short *TZOffset, bool *DST)