# This is a date_filter plug-in. # START is the beginning of the specified year; END is the end of the year. year = { label = "year" usage = "yyyy" regular_expression = "^([0-9][0-9]|[0-9][0-9][0-9][0-9])$" start = ` string year1 = $1; string year = convert_year(year1); # Remember what unit we're using remember_date_unit('year'); # Remember the decomposition set_decomposition_year(year); '01/Jan/'. year . ' 00:00:00' ` end = ` string year = convert_year($1); '31/Dec/'. year . ' 23:59:59' ` }