Lines Matching defs:tm
143 struct tm tm;
144 memset(&tm, 0, sizeof(tm));
145 tm.tm_isdst = -1; // Have libc figure out if DST is in effect or not
146 strptime(date, "%Y-%m-%dT%H:%M:%S", &tm);
147 strcatf(str, "<CaptureDate>0x%X</CaptureDate>", (unsigned int)mktime(&tm));
176 struct tm tm;
177 memset(&tm, 0, sizeof(tm));
178 tm.tm_isdst = -1; // Have libc figure out if DST is in effect or not
179 strptime(date, "%Y-%m-%dT%H:%M:%S", &tm);
180 strcatf(str, "<CaptureDate>0x%X</CaptureDate>", (unsigned int)mktime(&tm));