Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/siveing/khmerdate-conversion

Established the khmer date conversion, from UTC date to Khmer date format
https://github.com/siveing/khmerdate-conversion

chai converter dateconverter khmer khmer-calendar khmer-language moment-js rollup typescript

Last synced: about 2 months ago
JSON representation

Established the khmer date conversion, from UTC date to Khmer date format

Awesome Lists containing this project

README

        

# khmerdate-conversion

Installation
------------

```bash
npm i khmerdate-conversion
```

```bash
pnpm i khmerdate-conversion
```

```bash
yarn add khmerdate-conversion
```

Usage
------------
```
import KhmerDateConversion from 'khmerdate-conversion';

const date = new Date();
const dateKhmer = KhmerDateConversion(date, 'LLL');
const dateKhmer1 = KhmerDateConversion('2002-08-06', 'LL');
const dateKhmer2 = KhmerDateConversion('2002-08-06', 'L');

{dateKhmer}


```

Testing
--------------
You can run the command `yarn test` to check the mocha testing.

You can run the example by in `cd example`
And run the command `yarn && yarn dev`.

Support
--------------
Pull requests and new issues are of course welcome. If you have any questions, comments or feedback you can contact us by email at [email protected]. We will try to answer your questions, but we have limited manpower so please, be patient with us.