UNPKG

@devgateway/dvz-ui-react

Version:

A modular, embeddable React component library for data visualization and UI, built with TypeScript. Provides reusable components for charts, maps, dashboards, and more, with built-in support for internationalization and Redux integration.

10 lines (9 loc) 300 B
import "@devgateway/wp-react-lib"; function D(t) { if (!t) return { startDate: null, endDate: null }; const e = new Date(Date.UTC(t, 0, 1, 0, 0, 0, 0)), n = new Date(Date.UTC(t, 11, 31, 23, 59, 59, 999)); return { startDate: e, endDate: n }; } export { D as getStartDateAndEndDateFromYear };