#include <time.h>

main()
{
	char *s;
	long clock, clock2;
	char *ctime(), *asctime();
	struct tm *tbuf, *localtime(), *gmtime();

	/*
	 * Get the time.
	 */
	time(&clock);

	/* 
	 * Print the date one way...
	 */
	tbuf = localtime(&clock);
	s = asctime(tbuf);
	printf("%s\en", s);

	/*
	 * Print it another way...
	 */
	printf("%s\en", ctime(&clock));

	/*
	 * Now sleep for 60 seconds, get the
	 * new time, and then print the total
	 * time taken between now and the first
	 * call to time().
	 */
	sleep(60);
	time(&clock2);
	clock2 \-= clock;

	/*
	 * By adding 11 to the string returned, we skip over
	 * the day, date, etc.
	 */
	printf("%s\en", asctime(gmtime(&clock2))+11);
}
