UNPKG

datemapper

Version:

A lightweight date utility for format conversion, validation, and date manipulation.

11 lines (10 loc) 502 B
/** * Defines supported date format types for conversion functions. * These formats represent commonly used date formats. */ export type DateFormatType = "%Y-%m-%d" | "YYYY-MM-DD" | "%m/%d/%Y" | "MM/DD/YYYY" | "%d-%m-%Y" | "DD-MM-YYYY" | "%Y/%m/%d" | "YYYY/MM/DD"; /** * Defines allowed time units for date manipulation functions. * These units specify how dates can be incremented or decremented. */ export type TIncrementType = "day" | "month" | "hour" | "year" | "week" | "minute" | "second";