This commit is contained in:
parent
1635eaf992
commit
a43550fb9a
@ -10,3 +10,4 @@ luna_app(init.c init)
|
|||||||
luna_app(cat.c cat)
|
luna_app(cat.c cat)
|
||||||
luna_app(edit.c edit)
|
luna_app(edit.c edit)
|
||||||
luna_app(sh.c sh)
|
luna_app(sh.c sh)
|
||||||
|
luna_app(date.c date)
|
||||||
|
10
apps/date.c
Normal file
10
apps/date.c
Normal 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);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user