14 dword transitionDate = 0;
16 if(dstRuleString == NULL)
18 if(dstDate) *dstDate = 0;
24 sscanf(dstRuleString,
"%hhu,%hhu,%hhu,%02hhu:%02hhu", &ruleOrdinal, &ruleDay, &ruleMonth, &ruleHour, &ruleMin);
27 if(ruleOrdinal > 5){ruleOrdinal = 5;}
28 if(ruleDay > 6){ruleDay = 6;}
29 if(ruleMonth > 12){ruleMonth = 12;}
31 transitionDate =
DST_CalcTransition(ruleOrdinal, ruleDay, ruleMonth, ruleHour, ruleMin, StartDate);
33 if(dstDate) *dstDate = transitionDate;
void DST_ProcessRule(char *dstRuleString, dword *dstDate, dword StartDate)
dword DST_CalcTransition(byte ruleOrdinal, byte ruleDay, byte ruleMonth, byte ruleHour, byte ruleMin, dword StartDate)