Lines Matching refs:time
50 struct tm time; in ns_datetosecs() local
62 memset(&time, 0, sizeof time); in ns_datetosecs()
63 time.tm_year = datepart(cp + 0, 4, 1990, 9999, errp) - 1900; in ns_datetosecs()
64 time.tm_mon = datepart(cp + 4, 2, 01, 12, errp) - 1; in ns_datetosecs()
65 time.tm_mday = datepart(cp + 6, 2, 01, 31, errp); in ns_datetosecs()
66 time.tm_hour = datepart(cp + 8, 2, 00, 23, errp); in ns_datetosecs()
67 time.tm_min = datepart(cp + 10, 2, 00, 59, errp); in ns_datetosecs()
68 time.tm_sec = datepart(cp + 12, 2, 00, 59, errp); in ns_datetosecs()
80 result = time.tm_sec; /*%< Seconds */ in ns_datetosecs()
81 result += time.tm_min * 60; /*%< Minutes */ in ns_datetosecs()
82 result += time.tm_hour * (60*60); /*%< Hours */ in ns_datetosecs()
83 result += (time.tm_mday - 1) * SECS_PER_DAY; /*%< Days */ in ns_datetosecs()
86 for (i = 0; i < time.tm_mon; i++) in ns_datetosecs()
89 if (time.tm_mon > 1 && isleap(1900+time.tm_year)) in ns_datetosecs()
93 result += (time.tm_year - 70) * (SECS_PER_DAY*365); /*%< Years */ in ns_datetosecs()
94 for (i = 70; i < time.tm_year; i++) in ns_datetosecs()