mingo
Version:
MongoDB query language for in-memory objects
7 lines (6 loc) • 362 B
TypeScript
import { Any, AnyObject, Options } from "../../../types";
/**
* Returns the week of the year for a date as a number between 0 and 53.
* Weeks begin on Sundays, and week 1 begins with the first Sunday of the year. Days preceding the first Sunday of the year are in week 0
*/
export declare const $week: (obj: AnyObject, expr: Any, options: Options) => number;