in reply to time as number
use strict; use POSIX qw(strftime); print strftime("%Y%m%d%H%M%S\n", localtime()); [download]