@uwdata/mosaic-sql
Version:
SQL query construction and analysis.
32 lines • 1.46 kB
TypeScript
import type { ExprValue } from '../types.js';
/**
* Given a date/time value, return the milliseconds since the UNIX epoch.
* @param {ExprValue} expr The date/time expression.
*/
export declare function epoch_ms(expr: ExprValue): import("../index.js").FunctionNode;
/**
* Perform data binning according to the provided interval unit and steps.
* @param expr The date/time expression to bin.
* @param unit The datetime interval unit to bin by.
* @param steps The number of interval steps.
*/
export declare function dateBin(expr: ExprValue, unit: string, steps?: number): import("../index.js").FunctionNode;
/**
* Map date/times to a month value, all within the same year for comparison.
* The resulting value is still date-typed.
* @param expr The date/time expression.
*/
export declare function dateMonth(expr: ExprValue): import("../index.js").FunctionNode;
/**
* Map date/times to a month and day value, all within the same year for
* comparison. The resulting value is still date-typed.
* @param expr The date/time expression.
*/
export declare function dateMonthDay(expr: ExprValue): import("../index.js").FunctionNode;
/**
* Map date/times to a day of the month value, all within the same year and month
* for comparison. The resulting value is still date-typed.
* @param expr The date/time expression.
*/
export declare function dateDay(expr: ExprValue): import("../index.js").FunctionNode;
//# sourceMappingURL=datetime.d.ts.map