/* Program to identify ascii blocks in a binary file */
/* Useful to scan a disk partition */

#include <stdlib.h>
#include <stdio.h>
#include <sys/time.h>
#include <time.h>

main ()
{
	struct timeval timeval;
	gettimeofday(&timeval, NULL);
	struct tm *time_tm;
	time_tm = localtime (&timeval.tv_sec);
	char date[30], time[30];
	strftime(date, 30, "%x", time_tm);
	strftime(time, 30, "%X", time_tm);
	printf("DATE: %s\n", date);
	printf("HEURE: %s\n", time);
}

