UNPKG

@agnostack/next-shopify

Version:

Please contact agnoStack via info@agnostack.com for any questions

100 lines 3.58 kB
export const TIME_FORMAT_LONG: "HH:mm"; export const TIME_FORMAT_AMPM: "h:mm a"; export const DATE_FORMAT_MED: "M/d/yyyy"; export const DATE_FORMAT_LONG: "MM/dd/yyyy"; export const DATE_FORMAT_TRACKING: "MMddyyyy"; export const DATE_FORMAT_ORGANIZED: "yyyy-MM-dd"; export namespace CUSTOM_FORMATS { let UTC: string; let ISO: string; let UNIX: string; let RFC822: string; } export namespace LOCALE_FORMATS { export { DATE_MINI }; export { DATE_SHORT }; export { DATE_MED }; export { DATE_FULL }; export { DATE_HUGE }; export { DATETIME_MINI }; export { DATETIME_SHORT }; export { DATETIME_MED }; export { DATETIME_MED_WITH_WEEKDAY }; export { DATETIME_MED_WITH_SECONDS }; export { DATETIME_FULL_NO_ZONE }; export { DATETIME_HUGE_NO_ZONE }; export { TIME_SIMPLE }; } export function getDaysInMonth(year: any, month: any): number; export function setDateTimeLocale(locale: any): void; export function setDateTimeZone(zone: any): void; export function getDateTimeFormat({ locale, mappings }?: { locale: any; mappings?: { day: string; month: string; year: string; } | undefined; }): any; export function getDateTimeFromString({ format, value, ...options }?: { format: any; value: any; }): any; export function convertDateTime(value: any, { shouldThrow, shouldLog, ...options }?: { shouldThrow?: boolean | undefined; shouldLog?: boolean | undefined; }): any; export function convertDuration(value: any, { shouldThrow, ...options }?: { shouldThrow?: boolean | undefined; }): any; export function getDuration(dt1: any, dt2: any): any; export function getCurrentDateTime(): any; export function getDaysBetween(dt1: any, dt2: any): number; export function getWeeksBetween(dt1: any, dt2: any): number; export function isSameHour(dt1: any, dt2: any): boolean; export function isSameDay(dt1: any, dt2: any): boolean; export function ensureDateTime(value: any, options: any): any; export function toJSDate(value: any, options: any): any; export function toUnixInteger(value: any, options: any): any; export function toUnixString(value: any, options: any): string; export function toISOString(value: any, options: any): any; export function toUTCString(value: any, options: any): any; export function toRFC822String(value: any, options: any): any; export function toFormatted({ format, value, zone, ...options }?: { format: any; value: any; zone: any; }): any; export function convertFormatted({ value, to: { format: toFormat, ...toOptions }, from: { format: fromFormat, ...fromOptions }, }?: { value: any; to?: { format: any; } | undefined; from?: { format: any; } | undefined; }): any; export function compareDate(date1: any, date2: any): number; export function formatTimestamps(timestamps: any, defaultValue: any): {}; export function formatRequiredTimestamps({ created_at, updated_at, ...timestamps }?: { created_at: any; updated_at: any; }): { created_at: string; updated_at: string; }; declare const DATE_MINI: any; declare const DATE_SHORT: any; declare const DATE_MED: any; declare const DATE_FULL: any; declare const DATE_HUGE: any; declare const DATETIME_MINI: any; declare const DATETIME_SHORT: any; declare const DATETIME_MED: any; declare const DATETIME_MED_WITH_WEEKDAY: any; declare const DATETIME_MED_WITH_SECONDS: any; declare const DATETIME_FULL_NO_ZONE: any; declare const DATETIME_HUGE_NO_ZONE: any; declare const TIME_SIMPLE: any; export {}; //# sourceMappingURL=datetime.d.ts.map