Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use String::Formatter method_stringf => {
- -as => 'datetimef',
- codes => {
- f => 'strftime',
- c => 'format_cldr',
- s => sub { "$_[0]" },
- },
- };
- print datetimef("%{%Y-%m-%d}f is the same as %{yyyy-MM-dd}c.", DateTime->now);
Add Comment
Please, Sign In to add comment