initial commit

This commit is contained in:
2025-07-10 10:12:18 -04:00
commit d93243566c
8 changed files with 220 additions and 0 deletions

14
sb-date.c Normal file
View File

@@ -0,0 +1,14 @@
#include <stdio.h>
#include <time.h>
int main() {
time_t t = time(NULL);
struct tm tm = *localtime(&t);
const char *months[] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
printf("%s %02d %d\n", months[tm.tm_mon], tm.tm_mday, tm.tm_year + 1900);
return 0;
}