apps: Add date
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-03-24 21:48:43 +01:00
parent 1635eaf992
commit a43550fb9a
Signed by: apio
GPG Key ID: B8A7D06E42258954
2 changed files with 11 additions and 0 deletions

View File

@ -10,3 +10,4 @@ luna_app(init.c init)
luna_app(cat.c cat)
luna_app(edit.c edit)
luna_app(sh.c sh)
luna_app(date.c date)

10
apps/date.c Normal file
View File

@ -0,0 +1,10 @@
#include <stddef.h>
#include <stdio.h>
#include <time.h>
int main()
{
time_t now = time(NULL);
fputs(ctime(&now), stdout);
}