Index: uspace/app/date/date.c
===================================================================
--- uspace/app/date/date.c	(revision aeef318ad06745253226ad85095a2dda6824d68f)
+++ uspace/app/date/date.c	(revision 9f1328cdfca386dcd3ea627399e589469ee06542)
@@ -33,4 +33,5 @@
 #include <errno.h>
 #include <loc.h>
+#include <time.h>
 
 #define NAME   "date"
@@ -45,4 +46,6 @@
 	char *svc_name = NULL;
 	char *devpath;
+	devman_handle_t devh;
+	struct tm t;
 
 	/* Get the id of the clock category */
@@ -88,4 +91,33 @@
 	printf("Found device %s\n", devpath);
 
+	/* Get the device's handle */
+	rc = devman_fun_get_handle("/hw/pci0/00:01.0/cmos-rtc/a", &devh, IPC_FLAG_BLOCKING);
+	if (rc != EOK) {
+		printf(NAME ": Cannot open the device\n");
+		goto exit;
+	}
+
+	printf("OPEN!\n");
+
+	/* Now connect to the device */
+	async_sess_t *sess = devman_device_connect(EXCHANGE_SERIALIZE,
+	    devh, IPC_FLAG_BLOCKING);
+	if (!sess) {
+		printf(NAME ": Cannot connect to the device\n");
+		goto exit;
+	}
+
+	printf("CONNECTED!\n");
+
+	/* Read the current date */
+	rc = clock_dev_time_get(sess, &t);
+	if (rc != EOK) {
+		printf(NAME ": Cannot read the current time\n");
+		goto exit;
+	}
+
+	printf("SUCCESS!\n");
+	fflush(stdout);
+
 exit:
 	free(svc_name);
