Javascript and Java utilities for converting between the Nepali Bikram Sambat (Vikram Samvat) and Gregorian (standard European) calendars.
npm install bikram-sambat
var bs = require('bikram-sambat');
var days_in_baisakh_2000 = bs.daysInMonth(2000, 1);
console.log(bs.toBik_euro('2017-03-28'));
> 2073-12-15
console.log(bs.toBik_dev('2017-03-28'));
> २०७३-१२-१५
console.log(bs.toBik_text('2017-03-28'));
> १५ चैत २०७३
Java utilities for converting between the Nepali Bikram Sambat (Vikram Samvat) and Gregorian (standard European) calendars.
// TODO include gradle config here
BsCalendar bs = BsCalendar.getInstance();
int daysInBaisakh2000 = bs.daysInMonth(2000, 1);
System.out.println(bs.toBik_euro('2017-03-28'));
> 2073-12-15
System.out.println(bs.toBik_dev('2017-03-28'));
> २०७३-१२-१५
System.out.println(bs.toBik_text('2017-03-28'));
> १५ चैत २०७३
Re-usable Android widgets for date inputs using Bikram Sambat calendar.
See usage examples in java/android-demo-app
.
twitter-bootstrap widget available from npm
:
require('bikram-sambat-bootstrap');
For usage example, see bootstrap/dist
.
make test
/test-data/daysInMonth.json
as required/test-data/daysInMonth.json
as the BS Epoch. Take this
and convert it to AD and update the bsEpoch constant below.java-${version}
, eg: java-1.0.0
js-${version}
, eg: js-1.5.1
make release-js
/bootstrap/package.json
file to depend on the updated libarybootstrap-${version}
, eg: bootstrap-1.4.3
make release-bootstrap