JS libraries and web application for conversion of the date formats to and from Ethiopian calendar
# Ethio-European Date Converter
Ethiopian calendar is unique for having 13 months, 12 months each with 30 days and 1 more month with 5 or 6 days. It is also 7/8 years behind the European/Gregorian calendar.
This project contains javascript code (node), and a progressive web application (PWA) for conversion of the date formats back and forth. The web app works offline.
This web application can be accessed at
Automatically exported from
code.google.com
## Usage
```js
import { EthDateTime, limits } from 'ethiopian-calendar-date-converter'
// Create a date instance from current date-time
const ethDateTime = EthDateTime.now()
// Convert to Ethiopian date
const ethDateTime = EthDateTime.fromEuropeanDate(dateInput)
// Convert from Ethiopian date
const ethDateTime = new EthDateTime(year, month, day, hour, minute, second)
const date = ethDateTime.toEuropeanDate()
// get `limits` import to get minimum and maximum dat values that can be processed
```
## Development
### Recommended IDE Setup
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
### Type Support for `.vue` Imports in TS
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of `.vue` types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:
1. Disable the built-in TypeScript Extension
1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
### Customize configuration
See Vite Configuration Reference.
### Project Setup
```sh
pnpm instal …