Name

UI_DATE_END — default last year for date widget

SYNOPSIS

DESCRIPTION

VARIABLE TYPE

Catalog variable

EXAMPLES

No examples are available at this time. We do consider this a problem and will try to supply some.

NOTES

AVAILABILITY

UI_DATE_END is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Form.pm
Line 529 (context shows lines 519-533 in date_widget():444)

my $cy = $t[5] + 1900;

# If year_begin or year_end are /00+/, make current year
for(qw/ year_begin year_end /) {
if( length($opt->{$_}) > 1 and $opt->{$_} == 0) {
  $opt->{$_} = $cy;
}
}

if(my $by = $opt->{year_begin} || $::Variable->{UI_DATE_BEGIN}) {
my $ey = $opt->{year_end}  || $::Variable->{UI_DATE_END} || ($cy + 10);
if($by < 100) {
  $by = $cy - abs($by);
}
  if($ey < 100) {

AUTHORS

Interchange Development Group

SEE ALSO

UI_DATE_BEGIN(7ic)

DocBook! Interchange!