NAME
Catmandu::Fix::split_date - split a date field into year, month and date
SYNOPSIS
# {date => "2001-09-11"}
split_date('date')
# => { date => { year => 2001, month => "9", day => "11" } }
# { datestamp => "2001:09" }
split_date('datestamp')
# => { datestamp => { year => 2001, month => "9" } }
DESCRIPTION
The date field is expanded if it contains a year, optionally followed by numeric month and day, each separated by -
or :
.
AUTHOR
Nicolas Franck, <nicolas.franck at ugent.be>