summaryrefslogtreecommitdiff
path: root/userspace/date.c
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-21 12:56:51 +0200
committerMiguel <m.i@gmx.at>2018-09-21 12:56:51 +0200
commitc298ca7e6beaad0bcc32af6d4cf50d41b79f13b7 (patch)
treeb28e9c052cff3264439cad3c41b29262c60ba6ac /userspace/date.c
parentf5281689c95758f17628f0286e0265ecf3385a8e (diff)
fix framebufffer/ textmode and clean userspace a little bit more
Diffstat (limited to 'userspace/date.c')
-rw-r--r--userspace/date.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/userspace/date.c b/userspace/date.c
new file mode 100644
index 0000000..64b8dfc
--- /dev/null
+++ b/userspace/date.c
@@ -0,0 +1,19 @@
+#include <stdio.h>
+#include <string.h>
+#include <stdint.h>
+#include <stdlib.h>
+#include <math.h>
+#include <time.h>
+
+int main(int argc, char **argv)
+{
+ time_t ltime;
+ time(&ltime);
+ printf("%s", ctime(&ltime));
+ return 0;
+}
+
+
+
+
+