@rnaga/wp-node
Version:
👉 **[View Full Documentation at rnaga.github.io/wp-node →](https://rnaga.github.io/wp-node/)**
19 lines • 781 B
TypeScript
import { MomentInput } from "moment-timezone";
type DateArgsOptions = {
format?: string;
} & ({
offsetMinutes?: number;
withGMTOffset?: never;
} | {
offsetMinutes?: never;
withGMTOffset?: boolean;
});
type MySQLDateArgsOptions = Exclude<DateArgsOptions, "format">;
type DateArgs = [] | [MomentInput] | [MomentInput, DateArgsOptions] | [DateArgsOptions];
type MySQLDateArgs = [] | [MomentInput] | [MomentInput, MySQLDateArgsOptions] | [MySQLDateArgsOptions];
export declare const formatDate: (...args: DateArgs) => string;
export declare function formatDateMySQL(...args: MySQLDateArgs): string;
export declare function currentUnixTimestamp(): number;
export declare function convertYearToString(n?: number): string;
export {};
//# sourceMappingURL=date.d.ts.map