Home | History | Annotate | Download | only in time

Lines Matching defs:tm

50 	struct tm tm = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, NULL };
54 ret = strptime(buf, fmt, &tm);
57 "strptime(\"%s\", \"%s\", tm): incorrect return code: "
61 ATF_CHECK_MSG(tm.field == field, \
62 "strptime(\"%s\", \"%s\", tm): incorrect %s: " \
64 ___STRING(field), field, tm.field)
81 struct tm tm = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, NULL };
83 ATF_CHECK_MSG(strptime(buf, fmt, &tm) == NULL, "strptime(\"%s\", "
84 "\"%s\", &tm) should fail, but it didn't", buf, fmt);
166 struct tm tm;
169 memset(&tm, 0, sizeof(tm));
170 if ((rv = strptime(name, fmt, &tm)) == NULL)
171 tm.tm_gmtoff = -1;
187 ATF_CHECK_MSG(tm.tm_gmtoff == value,
188 "strptime(\"%s\", \"%s\", &tm): "
189 "expected: tm.tm_gmtoff=%ld, got: tm.tm_gmtoff=%ld",
190 name, fmt, value, tm.tm_gmtoff);
191 printf("%s %s %ld\n", name, fmt, tm.tm_gmtoff);
481 * the output can't be represented in struct tm.
520 struct tm tm;
535 if (strptime(buf, "%s", &tm) == NULL) {
539 fprintf(stderr, "tm_sec=%d\n", tm.tm_sec);
540 fprintf(stderr, "tm_min=%d\n", tm.tm_min);
541 fprintf(stderr, "tm_hour=%d\n", tm.tm_hour);
542 fprintf(stderr, "tm_mday=%d\n", tm.tm_mday);
543 fprintf(stderr, "tm_mon=%d\n", tm.tm_mon);
544 fprintf(stderr, "tm_year=%d\n", tm.tm_year);
545 fprintf(stderr, "tm_wday=%d\n", tm.tm_wday);
546 fprintf(stderr, "tm_yday=%d\n", tm.tm_yday);
547 fprintf(stderr, "tm_isdst=%d\n", tm.tm_isdst);
548 fprintf(stderr, "tm_gmtoff=%ld\n", tm.tm_gmtoff);
549 fprintf(stderr, "tm_zone=%s\n", tm.tm_zone);
556 if (tm.tm_year > 0x7fffffff - 1900)
558 t = mktime(&tm);