Catmandu::Fix::expand_date(3pm) | User Contributed Perl Documentation | Catmandu::Fix::expand_date(3pm) |
Catmandu::Fix::expand_date - expand a date field into year, month and date
This package is DEPRECATED and will be removed in the future. Please use Catmandu::Fix::split_date.
Reasons:
# {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 ":".
2023-03-03 | perl v5.36.0 |