Lines Matching refs:parsed

1888 	/* do funky checking whether the parsed time was valid time */
1890 add_warning(&in, TIMELIB_WARN_INVALID_TIME, "The parsed time was invalid");
1892 /* do funky checking whether the parsed date was valid date */
1894 add_warning(&in, TIMELIB_WARN_INVALID_DATE, "The parsed date was invalid");
2414 add_pbf_warning(s, TIMELIB_WARN_INVALID_DATE, "The parsed date was invalid", string, ptr);
2417 /* do funky checking whether the parsed time was valid time */
2421 add_pbf_warning(s, TIMELIB_WARN_INVALID_TIME, "The parsed time was invalid", string, ptr);
2423 /* do funky checking whether the parsed date was valid date */
2427 add_pbf_warning(s, TIMELIB_WARN_INVALID_DATE, "The parsed date was invalid", string, ptr);
2438 void timelib_fill_holes(timelib_time *parsed, timelib_time *now, int options)
2440 if (!(options & TIMELIB_OVERRIDE_TIME) && parsed->have_date && !parsed->have_time) {
2441 parsed->h = 0;
2442 parsed->i = 0;
2443 parsed->s = 0;
2444 parsed->us = 0;
2447 parsed->y != TIMELIB_UNSET || parsed->m != TIMELIB_UNSET || parsed->d != TIMELIB_UNSET ||
2448 parsed->h != TIMELIB_UNSET || parsed->i != TIMELIB_UNSET || parsed->s != TIMELIB_UNSET
2450 if (parsed->us == TIMELIB_UNSET) parsed->us = 0;
2452 if (parsed->us == TIMELIB_UNSET) parsed->us = now->us != TIMELIB_UNSET ? now->us : 0;
2454 if (parsed->y == TIMELIB_UNSET) parsed->y = now->y != TIMELIB_UNSET ? now->y : 0;
2455 if (parsed->m == TIMELIB_UNSET) parsed->m = now->m != TIMELIB_UNSET ? now->m : 0;
2456 if (parsed->d == TIMELIB_UNSET) parsed->d = now->d != TIMELIB_UNSET ? now->d : 0;
2457 if (parsed->h == TIMELIB_UNSET) parsed->h = now->h != TIMELIB_UNSET ? now->h : 0;
2458 if (parsed->i == TIMELIB_UNSET) parsed->i = now->i != TIMELIB_UNSET ? now->i : 0;
2459 if (parsed->s == TIMELIB_UNSET) parsed->s = now->s != TIMELIB_UNSET ? now->s : 0;
2460 if (parsed->z == TIMELIB_UNSET) parsed->z = now->z != TIMELIB_UNSET ? now->z : 0;
2461 if (parsed->dst == TIMELIB_UNSET) parsed->dst = now->dst != TIMELIB_UNSET ? now->dst : 0;
2463 if (!parsed->tz_abbr) {
2464 parsed->tz_abbr = now->tz_abbr ? timelib_strdup(now->tz_abbr) : NULL;
2466 if (!parsed->tz_info) {
2467parsed->tz_info = now->tz_info ? (!(options & TIMELIB_NO_CLONE) ? timelib_tzinfo_clone(now->tz_inf…
2469 if (parsed->zone_type == 0 && now->zone_type != 0) {
2470 parsed->zone_type = now->zone_type;
2471 /* parsed->tz_abbr = now->tz_abbr ? timelib_strdup(now->tz_abbr) : NULL;
2472 parsed->tz_info = now->tz_info ? timelib_tzinfo_clone(now->tz_info) : NULL;
2473 */ parsed->is_localtime = 1;
2475 /* timelib_dump_date(parsed, 2);