https://github.com/git/git
Revision e634aec752642dcf86c3fc82025e43381d6768c2 authored by Junio C Hamano on 31 October 2005, 02:06:39 UTC, committed by Junio C Hamano on 31 October 2005, 02:06:39 UTC
... to contain the RPM workaround.

Signed-off-by: Junio C Hamano <junkio@cox.net>
2 parent s a1c7a69 + 80e0c0a
Raw File
Tip revision: e634aec752642dcf86c3fc82025e43381d6768c2 authored by Junio C Hamano on 31 October 2005, 02:06:39 UTC
GIT 0.99.9a
Tip revision: e634aec
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