use POSIX qw(strftime); sub spGetCurrentDateTime { return strftime('%b %d %Y', localtime); }