ad-bs-converter
A javascript implementation to convert bikram samvat to anno domini and vice-versa
Last updated 3 years ago by techgaun .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ad-bs-converter 
SYNC missed versions from official npm registry.

ad-bs-converter npm version Build Status

A javascript implementation to convert bikram samvat to anno domini and vice-versa

If you are looking for ad-bs converter for python, check out ad-bs-converter.py.

Installation

npm install ad-bs-converter --save

Example

var adbs = require("ad-bs-converter");

console.log(adbs.ad2bs("1990/8/10"))
console.log(adbs.bs2ad("2047/4/26"))

outputs

{ ne: 
   { year: '२०४७',
     month: '४',
     day: '२६',
     strMonth: 'श्रावण',
     strShortMonth: 'श्रा',
     dayOfWeek: '५',
     strDayOfWeek: 'शुक्रवार',
     strShortDayOfWeek: 'शुक्र',
     strMinDayOfWeek: 'शु',
     totalDaysInMonth: '३२'},
  en: 
   { year: 2047,
     month: 4,
     day: 26,
     strMonth: 'Shrawan',
     strShortMonth: 'Shra',
     dayOfWeek: 5,
     strDayOfWeek: 'Shukrabaar',
     strShortDayOfWeek: 'Shukra',
     strMinDayOfWeek: 'Shu',
     totalDaysInMonth: '32' } }
{ year: 1990,
  month: 8,
  strMonth: 'August',
  strShortMonth: 'Aug',
  day: 10,
  dayOfWeek: 5,
  strDayOfWeek: 'Friday',
  strShortDayOfWeek: 'Fri' }

Current Tags

  • 0.5.0                                ...           latest (3 years ago)

5 Versions

  • 0.5.0                                ...           3 years ago
  • 0.4.1                                ...           3 years ago
  • 0.4.0                                ...           5 years ago
  • 0.3.0                                ...           5 years ago
  • 0.2.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |