Lines Matching refs:pst
624 SYSTEMTIME *pst = fStartDST ? &ptzi->DaylightDate : &ptzi->StandardDate;
642 long yearDay = IS_LEAP_YEAR(year) ? M2LYD[pst->wMonth - 1] :
643 M2YD [pst->wMonth - 1];
646 if (pst->wYear == 0) {
652 if (monthDOW < pst->wDayOfWeek) {
653 yearDay += (pst->wDayOfWeek - monthDOW) + (pst->wDay - 1) * 7;
655 yearDay += (pst->wDayOfWeek - monthDOW) + pst->wDay * 7;
658 // It is possible that we overshot the month, especially if pst->wDay
661 if ((pst->wDay == 5) &&
662 (yearDay >= (IS_LEAP_YEAR(year) ? M2LYD[pst->wMonth] :
663 M2YD [pst->wMonth])))
672 yearDay += pst->wDay - 1;
677 (3600L * (long)pst->wHour) +
678 (60L * (long)pst->wMinute) +
679 (long)pst->wSecond);