perl-DateTime-Format-Strptime will parse and format strp and strf time patterns.