#include #include main() { char sz[32]; time_t datum = time(NULL); strftime(sz, sizeof(sz), "%Y", localtime(&datum)); printf("%s\n", sz); }