dayjskh
TypeScript icon, indicating that this package has built-in type declarations

0.1.12 • Public • Published

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

  • [ ❌ ] Clean up code

Author

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.12131latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.12131
0.1.110
0.1.100
0.1.90
0.1.80
0.1.70
0.1.60
0.1.50
0.1.40
0.1.31
0.1.20
0.1.10
0.1.01

Package Sidebar

Install

npm i dayjskh

Weekly Downloads

133

Version

0.1.12

License

MIT

Unpacked Size

44.1 kB

Total Files

18

Last publish

Collaborators

  • chanthornsp