Staging
v0.5.1
Revision 6c41b80153a2e4ee347d0e968ee8d0d9abfc8862 authored by Junio C Hamano on 02 April 2008, 17:42:14 UTC, committed by Junio C Hamano on 02 April 2008, 18:13:25 UTC
The rate of fixes that trickle in has slowed and we are definitely
getting there.  Hopefully one final round and we will have the final
1.5.5 soon.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent eedb9d9
Raw File
test-date.c
#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));

		t = approxidate(argv[i]);
		printf("%s -> %s\n", argv[i], ctime(&t));
	}
	return 0;
}
back to top