Searched defs:timespec (Results 1 - 1 of 1) sorted by relevance

/frameworks/base/include/androidfw/
H A DZipUtils.h64 * Utility function to convert ZIP's time format to a timespec struct.
66 static inline void zipTimeToTimespec(long when, struct tm* timespec) { argument
68 timespec->tm_year = ((date >> 9) & 0x7F) + 80; // Zip is years since 1980
69 timespec->tm_mon = (date >> 5) & 0x0F;
70 timespec->tm_mday = date & 0x1F;
72 timespec->tm_hour = (when >> 11) & 0x1F;
73 timespec->tm_min = (when >> 5) & 0x3F;
74 timespec->tm_sec = (when & 0x1F) << 1;

Completed in 70 milliseconds