@alessiofrittoli/date-utils
Version:
Lightweight TypeScript date utility functions library
9 lines (8 loc) • 1.06 kB
TypeScript
export { SecondsToUnitReturn, formatLocaleDate, secondsToUnit } from './format/index.js';
export { dstTimezoneOffset, getCurrentMachineDateTimezoneOffsetH, getCurrentTimeZoneId, getTimezoneHFromGMTDateString, getTimezoneName, getTimezoneOffsetH, getTimezoneOffsetHm, isDstObserved } from './timezones/index.js';
export { AFRICA_TIMEZONES, AMERICA_TIMEZONES, ANTARCTICA_TIMEZONES, ASIA_TIMEZONES, ATLANTIC_TIMEZONES, EUROPE_TIMEZONES, OCEANIA_TIMEZONES, OTHERS_TIMEZONES, TIMEZONE_IDENTIFIERS } from './timezones/identifiers.js';
export { AfricaTimezone, AmericaTimezone, AntarcticaTimezone, AsiaTimezone, AtlanticTimezone, EuropeTimezone, OceaniaTimezone, OthersTimezone, Timezone } from './timezones/types.js';
export { InSeconds, combineDates, getTimeDiff, isValidDate, sortByDate } from './common.js';
export { daysInMonth, getAmOrPm, getDayOfYear, getISODayOfWeek, getISOWeekNumber, getSwatchBeat, isLeapYear } from './utils.js';
export { formatDate } from './format/formatDate.js';
export { formatRelativeTime } from './format/formatRelativeTime.js';