1.1.6 • Published 1 year ago

date-convert-ad-bs v1.1.6

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Date-convert-AD-BS

Lightweight JS Module to convert AD to BS and vice-versa.

Install

npm install date-convert-ad-bs

pnpm install date-convert-ad-bs

yarn add date-convert-ad-bs

Usage

How to Use

ES6 Syntax

  // ES6 import 
  import {ADTOBS, BSTOAD} from 'date-convert-ad-bs';
 
  console.log(ADTOBS(2023,5,29)); // ~ 2080-03-14
  console.log(BSTOAD(2080,2,15)); // ~ 2023-06-30

CommonJS Syntax

  const converter = require('date-convert-ad-bs');  

  console.log(converter.ADTOBS(2023,5,29)); // ~ 2080-03-14
  console.log(converter.BSTOAD(2080,2,15)); // ~ 2023-06-30
1.1.6

1 year ago

1.1.3

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago

0.1.0

1 year ago