37 lines
885 B
TypeScript
Executable file
37 lines
885 B
TypeScript
Executable file
import dayjsbr, { type Dayjs } from "dayjs"
|
|
|
|
export type { ManipulateType } from "dayjs"
|
|
|
|
import duration from "dayjs/plugin/duration"
|
|
import isSameOrAfter from "dayjs/plugin/isSameOrAfter"
|
|
import isSameOrBefore from "dayjs/plugin/isSameOrBefore"
|
|
import minMax from "dayjs/plugin/minMax"
|
|
import relativeTime from "dayjs/plugin/relativeTime"
|
|
import timezone from "dayjs/plugin/timezone"
|
|
import utc from "dayjs/plugin/utc"
|
|
import weekOfYear from "dayjs/plugin/weekOfYear"
|
|
import "dayjs/locale/pt-br"
|
|
dayjsbr.locale("pt-br")
|
|
|
|
dayjsbr.extend(utc)
|
|
dayjsbr.extend(timezone)
|
|
dayjsbr.extend(weekOfYear)
|
|
dayjsbr.extend(isSameOrBefore)
|
|
dayjsbr.extend(isSameOrAfter)
|
|
dayjsbr.extend(minMax)
|
|
dayjsbr.extend(relativeTime)
|
|
dayjsbr.extend(duration)
|
|
|
|
export {
|
|
dayjsbr,
|
|
duration,
|
|
isSameOrAfter,
|
|
isSameOrBefore,
|
|
minMax,
|
|
relativeTime,
|
|
timezone,
|
|
utc,
|
|
weekOfYear,
|
|
}
|
|
|
|
export type { Dayjs }
|