use POSIX; my $mdyt = strftime('+%m/%d/%Y %H:%M:%S', localtime(time));