Lines Matching defs:when
41 static bool show_date (const char *format, struct timespec when);
256 struct timespec when;
284 if (! get_date (&when, line, NULL))
293 ok &= show_date (format, when);
311 struct timespec when;
440 "when using an option to specify date(s), any non-option\n"
478 valid_date = posixtime (&when.tv_sec,
482 when.tv_nsec = 0; /* FIXME: posixtime should set this. */
487 gettime (&when);
497 when = get_stat_mtime (&refstats);
503 valid_date = get_date (&when, datestr, NULL);
514 if (settime (&when) != 0)
521 ok &= show_date (format, when);
531 show_date (const char *format, struct timespec when)
535 tm = localtime (&when.tv_sec);
539 error (0, 0, _("time %s is out of range"), timetostr (when.tv_sec, buf));
545 fprintftime (stdout, format, tm, 0, when.tv_nsec);