Format your DateTime values as usual in Czech. Now also with month names, day names and less sugar!
my $fmt = DateTime::Format::Czech->new; my $date = DateTime->new(year => 2010, month => 6, day => 13); say $fmt->format_datetime($date); # 13. června 2010
Include time in the output. Off by default.
Include date in the output. On by default.
Include year in the date output (“1. 12. 2010”). Off by default.
Include day name in date output (“neděle 13. 6.”). Off by default.
Use month name instead of its number (“1. prosince 2010”). On by default.
The sprintf pattern used to glue the time and date parts. The default value is %s v %s (“5. 6. v 16.30”).
sprintf
%s v %s
Takes a DateTime value, returns a string representation of its date part.
Takes a DateTime value, returns a string representation of its time part in 24-hour time system. Minutes are zero-padded if needed (“13.00”, “19.01”).
Formats a given DateTime value, returning date and time parts as configured by the show_date and show_time attributes. The date and time parts are glued together using the compound_format pattern. You can also call this method using the shorter format name.
show_date
show_time
compound_format
format
Tomáš Znamenáček, zoul@fleuron.cz
To install DateTime::Format::Czech, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DateTime::Format::Czech
CPAN shell
perl -MCPAN -e shell install DateTime::Format::Czech
For more information on module installation, please visit the detailed CPAN module installation guide.