Lines Matching refs:pDt
263 static void ApplyTimeOffset (DoyTimeObj* pDt, int off);
264 static void SecTimeFromDoyTime (SecTimeObj* pSt, DoyTimeObj* pDt);
265 static void DoyTimeFromSecTime (DoyTimeObj* pDt, SecTimeObj* pSt);
779 void ApplyTimeOffset(DoyTimeObj* pDt, int off)
785 SecTimeFromDoyTime(&st, pDt);
791 DoyTimeFromSecTime(pDt, &st);
807 void SecTimeFromDoyTime(SecTimeObj* pSt, DoyTimeObj* pDt)
817 yrs = pDt->year - TSYNC_TIME_BASE_YEAR;
825 pSt->seconds += (pDt->doy - 1) * SECSPERDAY;
826 pSt->seconds += pDt->hour * SECSPERHR;
827 pSt->seconds += pDt->minute * SECSPERMIN;
828 pSt->seconds += pDt->second;
831 pSt->ns = pDt->ns;
846 void DoyTimeFromSecTime(DoyTimeObj* pDt, SecTimeObj* pSt)
901 pDt->year = yrs + TSYNC_TIME_BASE_YEAR;
902 pDt->doy = doys;
903 pDt->hour = hrs;
904 pDt->minute = mins;
905 pDt->second = (unsigned int)secs;
906 pDt->ns = pSt->ns;