$self->usage_error('--creationdate-to expects date in format "YYYY-MM-DD", got "'.$opt->{creationdate_to}.'"');
}
}
if(defined$from_epochanddefined$to_epoch){
$opt->{creationdate_epochs}->{from}=$from_epoch;
$opt->{creationdate_epochs}->{to}=$to_epoch;
$self->usage_error('--date-to should have a date newer than --date-from')if($from_epoch>$to_epoch);
}
if(exists$opt->{pronom_id}){
$self->usage_error("--pronom-id expects string which is conform to PUID structure as described in https://www.nationalarchives.gov.uk/aboutapps/pronom/puid.htm")
$self->usage_error('--creationdate-to expects date in format "YYYY-MM-DD"');
$self->usage_error('--creationdate-to expects date in format "YYYY-MM-DD", got "'.$opt->{creationdate_to}.'"');
}
}
if(defined$from_epochanddefined$to_epoch){
$opt->{creationdate_epochs}->{from}=$from_epoch;
$opt->{creationdate_epochs}->{to}=$to_epoch;
$self->usage_error('--date-to should have a date newer than --date-from')if($from_epoch>$to_epoch);
}
if(exists$opt->{pronom_id}){
$self->usage_error("--pronom-id expects string which is conform to PUID structure as described in https://www.nationalarchives.gov.uk/aboutapps/pronom/puid.htm")