import type { FunctionDefinition } from '../../definition_types'; /** * Rounds down a date to the closest interval since epoch, which starts at `0001-01-01T00:00:00Z`. * * @example * FROM employees * | KEEP first_name, last_name, hire_date * | EVAL year_hired = DATE_TRUNC(1 year, hire_date) * * @example * FROM employees * | EVAL year = DATE_TRUNC(1 year, hire_date) * | STATS hires = COUNT(emp_no) BY year * | SORT year * * @example * FROM sample_data * | EVAL error = CASE(message LIKE "*error*", 1, 0) * | EVAL hour = DATE_TRUNC(1 hour, @timestamp) * | STATS error_rate = AVG(error) by hour * | SORT hour */ declare const definition: FunctionDefinition; export default definition; //# sourceMappingURL=date_trunc.d.ts.map