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

int main (int argc, char **argv) {
	time_t t;
	struct tm tm;
	char buf1[100];
	char buf2[100];

	t = time (NULL);
	tm = *localtime (&t);

	if (strftime (buf1, sizeof (buf1), "%k.%M", &tm) == 0)
		abort ();
	printf ("time: '%s'\n", buf1);
	if (strftime (buf2, sizeof (buf2), "%H.%M", &tm) == 0)
		abort ();
	printf ("time: '%s'\n", buf2);

	return 0;
}
