import { ZDateTime, ZDateTimeOptions } from '../date/date-time.mjs'; /** * Basic date formats that are common for storage and usage. */ export declare enum ZDateFormats { /** * Standard {@link https://en.wikipedia.org/wiki/ISO_8601 | ISO-8601} format with date only. * * Using this should imply midnight user timezone. */ IsoDateOnly = "yyyy-MM-dd", /** * Standard {@link https://en.wikipedia.org/wiki/ISO_8601 | ISO-8601} format with time only. */ IsoTimeOnly = "HH:mm:ss.SSS", /** * Standard {@link https://en.wikipedia.org/wiki/ISO_8601 | ISO-8601} format without timezone specifier. */ IsoNoTimeZone = "yyyy-MM-dd'T'HH:mm:ss.SSS", /** * Standard {@link https://en.wikipedia.org/wiki/ISO_8601 | ISO-8601} format. */ Iso = "yyyy-MM-dd'T'HH:mm:ss.SSSXX", /** * Users local date (locale specific). */ LocalDate = "P", /** * User local time (locale specific). */ LocalTime = "p", /** * Date and time formatted with user specific locale. */ LocalDateTime = "Pp" } /** * Formats a given value. * * @param value - * The value to format. * @param options - * The given options for the format. * * @returns * If value is null or undefined, then the empty string is returned. * If value is a string, then the date is guessed from the string and * reformatted to the format specified by options. Otherwise, * the date or number specified by value is formatted to the culture, * timezone, and format specified in the options. */ export declare function formatDateTime(value: ZDateTime, options?: ZDateTimeOptions): string;