JSPM

  • Created
  • Published
  • Downloads 216
  • Score
    100M100P100Q97360F

Convert Gregorian date to Kollavarsham date and vice versa

Package Exports

  • kollavarsham

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (kollavarsham) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

kollavarsham

npm Travis Code Climate Code Climate Coveralls

David David

Convert Gregorian date to Kollavarsham date and vice versa

Getting Started

Install the module with: npm install kollavarsham

Usage

As library/module

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);

As globally installed node.js CLI app

npm install -g kollavarsham

kollavarsham --help

Documentation

Click here to visit the API Documentation

Examples

To convert Modern Date to Kollavarsham Date for Location (100 deg east, 90 deg north using 'InPancasiddhantika' system and list output:

kollavarsham -s 'InPancasiddhantika' -t 90 -g 100 -m 0 -o list 23:08:2008

To convert Modern Date to with default settings (Location: Ujjain):

kollavarsham 04:04:2011

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.