Lines Matching refs:parsed
2061 /* do funky checking whether the parsed time was valid time */
2063 add_warning(&in, TIMELIB_WARN_INVALID_TIME, "The parsed time was invalid");
2065 /* do funky checking whether the parsed date was valid date */
2067 add_warning(&in, TIMELIB_WARN_INVALID_DATE, "The parsed date was invalid");
2655 add_pbf_warning(s, TIMELIB_WARN_INVALID_DATE, "The parsed date was invalid", string, ptr);
2658 /* do funky checking whether the parsed time was valid time */
2662 add_pbf_warning(s, TIMELIB_WARN_INVALID_TIME, "The parsed time was invalid", string, ptr);
2664 /* do funky checking whether the parsed date was valid date */
2668 add_pbf_warning(s, TIMELIB_WARN_INVALID_DATE, "The parsed date was invalid", string, ptr);
2679 void timelib_fill_holes(timelib_time *parsed, timelib_time *now, int options)
2681 if (!(options & TIMELIB_OVERRIDE_TIME) && parsed->have_date && !parsed->have_time) {
2682 parsed->h = 0;
2683 parsed->i = 0;
2684 parsed->s = 0;
2685 parsed->us = 0;
2688 parsed->y != TIMELIB_UNSET || parsed->m != TIMELIB_UNSET || parsed->d != TIMELIB_UNSET ||
2689 parsed->h != TIMELIB_UNSET || parsed->i != TIMELIB_UNSET || parsed->s != TIMELIB_UNSET
2691 if (parsed->us == TIMELIB_UNSET) parsed->us = 0;
2693 if (parsed->us == TIMELIB_UNSET) parsed->us = now->us != TIMELIB_UNSET ? now->us : 0;
2695 if (parsed->y == TIMELIB_UNSET) parsed->y = now->y != TIMELIB_UNSET ? now->y : 0;
2696 if (parsed->m == TIMELIB_UNSET) parsed->m = now->m != TIMELIB_UNSET ? now->m : 0;
2697 if (parsed->d == TIMELIB_UNSET) parsed->d = now->d != TIMELIB_UNSET ? now->d : 0;
2698 if (parsed->h == TIMELIB_UNSET) parsed->h = now->h != TIMELIB_UNSET ? now->h : 0;
2699 if (parsed->i == TIMELIB_UNSET) parsed->i = now->i != TIMELIB_UNSET ? now->i : 0;
2700 if (parsed->s == TIMELIB_UNSET) parsed->s = now->s != TIMELIB_UNSET ? now->s : 0;
2702 if (!parsed->tz_info) {
2703 …parsed->tz_info = now->tz_info ? (!(options & TIMELIB_NO_CLONE) ? timelib_tzinfo_clone(now->tz_inf…
2705 if (parsed->z == TIMELIB_UNSET) parsed->z = now->z != TIMELIB_UNSET ? now->z : 0;
2706 if (parsed->dst == TIMELIB_UNSET) parsed->dst = now->dst != TIMELIB_UNSET ? now->dst : 0;
2708 if (!parsed->tz_abbr) {
2709 parsed->tz_abbr = now->tz_abbr ? timelib_strdup(now->tz_abbr) : NULL;
2713 if (parsed->zone_type == 0 && now->zone_type != 0) {
2714 parsed->zone_type = now->zone_type;
2715 /* parsed->tz_abbr = now->tz_abbr ? timelib_strdup(now->tz_abbr) : NULL;
2716 parsed->tz_info = now->tz_info ? timelib_tzinfo_clone(now->tz_info) : NULL;
2717 */ parsed->is_localtime = 1;
2719 /* timelib_dump_date(parsed, 2);