#include #include #include #include #include #include #include int main(int argc, char ** argv){ struct statx sbuf; if(-1 == statx(AT_FDCWD, argv[1], 0, STATX_BTIME, &sbuf)){ printf("Something went wrong!\n"); perror("the thing we added"); return 0; } time_t creation_time = sbuf.stx_btime.tv_sec; printf("Created: %s\n", ctime(&creation_time)); return 0; }