Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
themes/kollavarsham
.codeclimate.yml
.editorconfig
.gitignore
.jshintrc
.travis.yml
CONTRIBUTING.md
Gruntfile.js
README.md
deploy.sh
grunt-istanbul.js
package.json

README.md

kollavarsham

npm Travis Code Climate Code Climate David David

Convert Gregorian date to Kollavarsham date and vice versa

UPDATE (9/16/2015): This ES5 version of the library has been ported into an ES2015/ES6 version that is transcompiled by Babel at https://github.com/kollavarsham/kollavarsham-js. The core npm package will be published from that repo from here onwards.

Getting Started

Install the module with: npm install kollavarsham

Usage

var Kollavarsham = require('kollavarsham');

var options = {
  system: 'SuryaSiddhanta',
  latitude: 10,
  longitude: 76.2,
  outputFormat: 'verbose'
};

var kollavarsham = new Kollavarsham(options);

var todayInMalayalamEra = kollavarsham.fromGregorianDate(new Date());

var today = kollavarsham.toGregorianDate(todayInMalayalamEra);

Documentation

Click here to visit the API Documentation

CLI app

Check out the cli module (GitHub repo) for the kollavarsham cross-platform CLI app

npm install -g kollavarsham-cli

kollavarsham --help

Contributing

Check the Contributing guide.

Release History

Check out the history at GitHub Releases

License

Copyright (c) 2014-2015 The Kollavarsham Team. Licensed under the MIT license.