Parse and format strp and strf time patterns