0.1.12 • Published 15 days ago

dayjskh v0.1.12

Weekly downloads
-
License
MIT
Repository
github
Last release
15 days ago

Khmer Lunar Date plugin for Day.js

Convert Date to Khmer Lunar Date see more....

Installation

npm install dayjs
npm install dayjskh

Usage

import dayjs from "dayjs";
import toKhmerDate from "dayjskh";

dayjs.extend(toKhmerDate);

const date = dayjs();
console.log(date.toKhmerDate(format?)); // ថ្ងៃច័ន្ទ ១២កើត ខែស្រាពណ៍ ឆ្នាំថោះ បញ្ចស័ក ពុទ្ធសករាជ ២៥៦៧
// find khmer new year dateTime
console.log(date.khNewYear());
// type
// {
//     date: Dayjs;
//     days: number;
//     dates: {
//         date: Dayjs;
//         dayName: string;
//     }[]
// }

TODO

Author

0.1.12

15 days ago

0.1.11

2 months ago

0.1.10

2 months ago

0.1.8

2 months ago

0.1.9

2 months ago

0.1.7

6 months ago

0.1.6

8 months ago

0.1.5

8 months ago

0.1.4

9 months ago

0.1.3

9 months ago

0.1.2

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago