@tmlmobilidade/utils
Version:
This package provides a collection of common utility functions used across projects within the organization.
28 lines (27 loc) • 927 B
TypeScript
export interface DatesFormat {
day?: '2-digit' | 'numeric';
hour?: '2-digit' | 'numeric';
minute?: '2-digit' | 'numeric';
month?: '2-digit' | 'long' | 'numeric' | 'short';
second?: '2-digit' | 'numeric';
timeZoneName?: 'long' | 'short';
weekday?: 'long' | 'narrow' | 'short';
year?: '2-digit' | 'numeric';
}
export declare const OPERATIONAL_DATE_FORMAT = "yyyyMMdd";
export declare const Formats: {
DATE_FULL: DatesFormat;
DATE_FULL_WITH_YEAR: DatesFormat;
DATE_HUGE: DatesFormat;
DATE_MEDIUM: DatesFormat;
DATE_SHORT: DatesFormat;
DATETIME_FULL: DatesFormat;
DATETIME_FULL_WITH_SECONDS: DatesFormat;
DATETIME_MEDIUM: DatesFormat;
DATETIME_MEDIUM_WITH_SECONDS: DatesFormat;
DATETIME_SHORT: DatesFormat;
DATETIME_SHORT_WITH_SECONDS: DatesFormat;
OPERATIONAL_DATE_FORMAT: string;
TIME_SIMPLE: DatesFormat;
TIME_WITH_SECONDS: DatesFormat;
};