Catmandu::Fix::expand_date - expand a date field into year, month and date
# {date => "2001-09-11"} expand_date() # => {year => 2001, month => "9", day => "11", date => "2001-09-11"} # {datestamp => "2001:09"} expand_date(datestamp) # => {year => 2001, month => "9", datestamp => "2001:09"}
The date field is expanded if it contains a year, optionally followed by numeric month and day, each separated by - or :.
-
:
To install Catmandu, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu
CPAN shell
perl -MCPAN -e shell install Catmandu
For more information on module installation, please visit the detailed CPAN module installation guide.