ctime
-
Hallo
Kann man die Ausgabedarstellung auch noch änder, wie müsste man denn der Code anpassen, wenn folgendes auf dem Bildschirm erscheinen soll.
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <sys/types.h> #include <sys/stat.h> int main(void) { struct stat s; stat("C:\\Velo.txt", &s); printf("%s", ctime(&s.st_mtime)); printf("%s", ctime(&s.st_ctime)); printf("%s", ctime(&s.st_atime)); system("pause"); return EXIT_SUCCESS; }
20:08:2012 08:55:41
20:08:2012 08:47:39
20:08:2012 08:55:41
Drücken Sie eine beliebige Taste
-
Was genau hat das mit irgendeiner GUI-Library zu tun?
strftime()
ist dein Freund.