devsite/node_modules/liquidjs/dist/util/liquid-date.d.ts
2024-07-07 18:49:38 -07:00

21 lines
564 B
TypeScript

/**
* The date interface LiquidJS uses.
* Basically a subset of JavaScript Date,
* it's defined abstractly here to allow different implementation
*/
export interface LiquidDate {
getTime(): number;
getMilliseconds(): number;
getSeconds(): number;
getMinutes(): number;
getHours(): number;
getDay(): number;
getDate(): number;
getMonth(): number;
getFullYear(): number;
getTimezoneOffset(): number;
getTimezoneName?(): string;
toLocaleTimeString(): string;
toLocaleDateString(): string;
}