123456789101112131415161718192021222324252627282930313233343536 |
- #include <time.h>
- #include <stdio.h>
- void printUsage() {
- printf("Ferass' Base System.\n\n"
- "Usage: date\n\n"
- "Print the date and time.\n\n"
- );
- }
- int main() {
- time_t epoch = time(NULL);
- struct tm* date = localtime(&epoch);
- setvbuf(stdout, NULL, _IONBF, 0);
- printf("%s", asctime(date));
- return 0;
- }
|