https://github.com/siveing/khmerdate
https://github.com/siveing/khmerdate
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/siveing/khmerdate
- Owner: siveing
- License: mit
- Created: 2023-07-25T07:53:03.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-25T13:58:20.000Z (about 3 years ago)
- Last Synced: 2025-02-17T04:36:20.153Z (over 1 year ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# khmerdate
Installation
------------
```bash
npm i @siveing/khmerdate
```
Usage
------------
```
import { KhmerDate } from '@siveing/khmerdate';
const date = "2002-08-06";
const dateKhmer = new KhmerDate(date);
console.log(dateKhmer.dateTimeFormat('LLLLT'));
console.log(dateKhmer.dateTimeFormat('LLLL'));
console.log(dateKhmer.dateTimeFormat('L'));
console.log(dateKhmer.dateTimeFormat('LT'));
console.log(dateKhmer.format('LLL'));
```
Testing
--------------
You can run the testing by in `testing`
And run the command `npm test`.
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 siveing.huyy@gmail.com. We will try to answer your questions, but we have limited manpower so please, be patient with us.