# This is a date_filter plug-in. # START is the beginning of the specified minute; END is the end of the minute. minute = { label = "minute" usage = "dd/mmm/yyyy hh:mm" regular_expression = "^([0-9]+)[^-,0-9A-Za-z]?([A-Za-z]+)[^-,0-9A-Za-z]?([0-9]+)[^-,0-9A-Za-z]([0-9][0-9])[^-,0-9A-Za-z]?([0-9][0-9])$" start = ` string day = $1; string month = $2; string year = $3; string hour = $4; string minute = $5; day = convert_day(day); month = convert_month(month); year = convert_year(year); hour = convert_hms(hour); minute = convert_hms(minute); # Remember what unit we're using remember_date_unit('minute'); # Remember the decomposition set_decomposition_year(year); set_decomposition_month(month); set_decomposition_day(day); set_decomposition_hour(hour); set_decomposition_minute(minute); # Build the first second of this hour v.start = day . "/" . month . "/" . year . ' ' . hour . ':' . minute . ':00'; v.start; ` end = `substr(v.start, 0, 17) . ":59"` }