test-date.con commit git-sh-setup: Fix scripts whose PWD is a symlink into a git work-dir (08fc060)
   1#include "cache.h"
   2
   3int main(int argc, char **argv)
   4{
   5        int i;
   6
   7        for (i = 1; i < argc; i++) {
   8                char result[100];
   9                time_t t;
  10
  11                memcpy(result, "bad", 4);
  12                parse_date(argv[i], result, sizeof(result));
  13                t = strtoul(result, NULL, 0);
  14                printf("%s -> %s -> %s", argv[i], result, ctime(&t));
  15
  16                t = approxidate(argv[i]);
  17                printf("%s -> %s\n", argv[i], ctime(&t));
  18        }
  19        return 0;
  20}