in reply to displaying the current date

use POSIX qw/strftime/; sub local_yyyymmdd { return strftime "%Y-%m-%d", localtime($_ || time()); }