Home | History | Annotate | Download | only in qemu

Lines Matching full:year

276     uint32_t year = tm->tm_year + 1900;
277 uint32_t thousands = year / 1000;
278 year -= thousands * 1000;
279 uint32_t hundreds = year / 100;
280 year -= hundreds * 100;
281 uint32_t tens = year / 10;
282 year -= tens * 10;
283 uint32_t ones = year;
284 year = (thousands << 12) | (hundreds << 8) | (tens << 4) | ones;
296 *pdate = (year << 16) | (mon << 8) | day;