use POSIX; print strftime("%A, %B %d, %Y %H:%M", localtime(time));