| 59 | } |
| 60 | |
| 61 | static void parse_dates(const char **argv) |
| 62 | { |
| 63 | struct strbuf result = STRBUF_INIT; |
| 64 | |
| 65 | for (; *argv; argv++) { |
| 66 | timestamp_t t; |
| 67 | int tz; |
| 68 | |
| 69 | strbuf_reset(&result); |
| 70 | parse_date(*argv, &result); |
| 71 | if (sscanf(result.buf, "%"PRItime" %d", &t, &tz) == 2) |
| 72 | printf("%s -> %s\n", |
| 73 | *argv, show_date(t, tz, DATE_MODE(ISO8601))); |
| 74 | else |
| 75 | printf("%s -> bad\n", *argv); |
| 76 | } |
| 77 | strbuf_release(&result); |
| 78 | } |
| 79 | |
| 80 | static void parse_approxidate(const char **argv) |
| 81 | { |
no test coverage detected