Lines 48-54
sub db_max ($;$) {
Link Here
|
48 |
$iso = output_pref({ dt => dt_from_string( $input, 'iso' ), dateformat => 'iso', dateonly => 1 }); # try to set the date w/ 2nd arg |
48 |
$iso = output_pref({ dt => dt_from_string( $input, 'iso' ), dateformat => 'iso', dateonly => 1 }); # try to set the date w/ 2nd arg |
49 |
unless ($iso) { |
49 |
unless ($iso) { |
50 |
warn "Failed to create 'iso' Dates object with input '$input'. Reverting to today's date."; |
50 |
warn "Failed to create 'iso' Dates object with input '$input'. Reverting to today's date."; |
51 |
$iso = output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }); # failover back to today |
51 |
$iso = output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }); # failover back to today |
52 |
} |
52 |
} |
53 |
} else { |
53 |
} else { |
54 |
$iso = output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }); |
54 |
$iso = output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }); |
Lines 83-89
sub width ($;$) {
Link Here
|
83 |
sub process_head($$;$$) { # (self,head,whole,specific) |
83 |
sub process_head($$;$$) { # (self,head,whole,specific) |
84 |
my ($self,$head,$whole,$specific) = @_; |
84 |
my ($self,$head,$whole,$specific) = @_; |
85 |
$specific and return $head; # if this is built off an existing barcode, just return the head unchanged. |
85 |
$specific and return $head; # if this is built off an existing barcode, just return the head unchanged. |
86 |
return substr(output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }), 0, 4 ) . '-'; # else get new YYYY- |
86 |
return substr(output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }), 0, 4 ) . '-'; # else get new YYYY- |
87 |
} |
87 |
} |
88 |
|
88 |
|
89 |
sub new_object { |
89 |
sub new_object { |