Searched refs:setdate (Results 1 – 1 of 1) sorted by relevance
167 char *setdate = *toys.optargs, *format_string = "%a %b %e %H:%M:%S %Z %Y"; in date_main() local195 if (!setdate); in date_main()197 else if (*setdate == '+') { in date_main()199 setdate = toys.optargs[1]; in date_main()202 } else if (setdate) { in date_main()205 if (parse_default(setdate, &tm)) error_exit("bad date '%s'", setdate); in date_main()210 tv.tv_sec = chkmktime(&tm, setdate, format_string); in date_main()212 } else tv.tv_sec = chkmktime(&tm, setdate, format_string); in date_main()