use POSIX; print strftime("%Y%m%d", localtime);