# This is a date_filter plug-in. # START and END are the beginning and end of the day specified by date. day = { label = "day(s)" usage = "dd/mmm/yyyy" regular_expression = "^([0-9]+)[^-,0-9A-Za-z]?([A-Za-z]+)[^-,0-9A-Za-z]?([0-9]+)$" start = ` debug_message("start\n"); string day = $1; string month = $2; debug_message("month: " . month . "\n"); string year = $3; day = convert_day(day); debug_message("2month: " . month . "\n"); month = convert_month(month); debug_message("month: " . month . "\n"); year = convert_year(year); # Remember what unit we're using remember_date_unit('day'); # Remember the decomposition set_decomposition_day(day); set_decomposition_month(month); set_decomposition_year(year); # Build the first second of this hour day . "/" . month . "/" . year . ' 00:00:00' ` end = ` string day = $1; string month = $2; string year = $3; day = convert_day(day); month = convert_month(month); year = convert_year(year); # Build the last second of this day day . "/" . month . "/" . year . ' 23:59:59' ` }