Lines Matching defs:tm
528 sense that it doesn't need to have a prefilled "struct tm"
702 computeRelativeUnit(parsed_element& element, struct tm& tm, int* _flags)
708 tm.tm_mon = 0; // supposed to fall through
710 tm.tm_mday = 1; // supposed to fall through
712 tm.tm_hour = 0;
713 tm.tm_min = 0;
714 tm.tm_sec = 0;
726 tm.tm_mon += value;
728 tm.tm_mday += value;
730 tm.tm_sec += value;
733 tm.tm_year += value;
735 tm.tm_mday += element.value - tm.tm_wday;
738 tm.tm_mday += 7;
740 tm.tm_mday -= 7;
742 tm.tm_mon = element.value - 1;
745 tm.tm_year++;
747 tm.tm_year--;
764 struct tm tm;
771 memset(&tm, 0, sizeof(tm));
773 localtime_r(&now, &tm);
774 nowYear = tm.tm_year;
776 tm.tm_min = 0;
777 tm.tm_sec = 0;
807 tm.tm_mday = element->value;
810 tm.tm_mon = element->value - 1;
814 tm.tm_hour = element->value;
817 tm.tm_min = element->value;
820 tm.tm_sec = element->value;
826 struct tm tmNow;
833 tm.tm_year = element->value;
834 if (tm.tm_year < 1900) {
839 if (nowYearInCentury + 10 < tm.tm_year % 100)
840 tm.tm_year -= 100;
842 tm.tm_year += nowCentury - 1900;
845 tm.tm_year -= 1900;
857 tm.tm_sec -= value + timezone;
861 computeRelativeUnit(*element, tm, _flags);
876 computeRelativeUnit(*element, tm, _flags);
880 tm.tm_mon = element->value - 1;
883 tm.tm_sec += element->value;
887 tm.tm_sec -= element->value + timezone;
896 computeRelativeUnit(*element, tm, _flags);
911 return mktime(&tm);