Lines Matching defs:Tm
1006 struct my_tm Tm;
1007 memset(&Tm, 0, sizeof(Tm));
1008 Tm.tm_year = Time.i32Year - 1900;
1009 Tm.tm_mon = Time.u8Month - 1;
1010 Tm.tm_mday = Time.u8MonthDay;
1011 Tm.tm_wday = (Time.u8WeekDay + 1 + 7) % 7; /* 0 = Monday -> Sunday */
1012 Tm.tm_yday = Time.u16YearDay - 1;
1013 Tm.tm_hour = Time.u8Hour;
1014 Tm.tm_min = Time.u8Minute;
1015 Tm.tm_sec = Time.u8Second;
1017 rtc_set_date(pThis, &Tm);
1019 int iYear = to_bcd(pThis, (Tm.tm_year / 100) + 19); /* tm_year is 1900 based */