Lines Matching refs:local
82 struct tm local;
168 /* get local CMOS clock and possible kernel offset */
174 /* get the actual local timezone difference */
178 local = *localtime(&initial_sec);
180 initial_isdst = local.tm_isdst;
181 local.tm_isdst = initial_isdst;
183 /* calculate local CMOS diff from GMT */
185 localsec = mktime(&local);
188 * XXX user can only control local time, and it is
194 "Warning: nonexistent local time, try to run later.");
199 "Warning: nonexistent local time.");
207 offset = -local.tm_gmtoff;
225 /* get the actual local timezone difference */
226 local = *localtime(&final_sec);
227 final_isdst = diff < 0 ? initial_isdst : local.tm_isdst;
235 local.tm_isdst = final_isdst;
237 localsec = mktime(&local);
246 "Warning: nonexistent final local time, try to run later.");
251 "Warning: nonexistent final local time.");
259 offset = -local.tm_gmtoff;