Lines Matching defs:time
32 #include <time.h>
56 struct tm time;
68 memset(&time, 0, sizeof time);
69 time.tm_year = datepart(cp + 0, 4, 1990, 9999, errp) - 1900;
70 time.tm_mon = datepart(cp + 4, 2, 01, 12, errp) - 1;
71 time.tm_mday = datepart(cp + 6, 2, 01, 31, errp);
72 time.tm_hour = datepart(cp + 8, 2, 00, 23, errp);
73 time.tm_min = datepart(cp + 10, 2, 00, 59, errp);
74 time.tm_sec = datepart(cp + 12, 2, 00, 59, errp);
86 result = time.tm_sec; /*%< Seconds */
87 result += time.tm_min * 60; /*%< Minutes */
88 result += time.tm_hour * (60*60); /*%< Hours */
89 result += (time.tm_mday - 1) * SECS_PER_DAY; /*%< Days */
92 for (i = 0; i < time.tm_mon; i++)
95 if (time.tm_mon > 1 && isleap(1900+time.tm_year))
99 result += (time.tm_year - 70) * (SECS_PER_DAY*365); /*%< Years */
100 for (i = 70; i < time.tm_year; i++)