Revision f89ad67fb054bead054bc92b4d0d4d007248b611 authored by Junio C Hamano on 26 October 2005, 06:43:59 UTC, committed by Junio C Hamano on 26 October 2005, 06:43:59 UTC
Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 271440e
Raw File
test-date.c
#include <stdio.h>
#include <time.h>

#include "cache.h"

int main(int argc, char **argv)
{
	int i;

	for (i = 1; i < argc; i++) {
		char result[100];
		time_t t;

		memcpy(result, "bad", 4);
		parse_date(argv[i], result, sizeof(result));
		t = strtoul(result, NULL, 0);
		printf("%s -> %s -> %s", argv[i], result, ctime(&t));
	}
	return 0;
}
back to top