use POSIX qw(strftime); sub formatDTV { return strftime("%a., %d %b. %Y, %H:%M",@_); }