Class: Kollavarsham

kollavarsham. Kollavarsham

Kollavarsham


new Kollavarsham( [options])

Parameters:
Name Type Argument Description
options Object <optional>

A set of key value pairs to configure the Kollavarsham instance. All settings are optional.

Properties
Name Type Argument Default Description
system String <optional>
'SuryaSiddhanta'

Set to 'InPancasiddhantika' or 'SuryaSiddhanta' to use the corresponding system

latitude Number <optional>
23.2

Sets the latitude for the location for the conversions. Defaults to Ujjain, Madhya Pradesh

longitude Number <optional>
75.8

Sets the longitude for the location for the conversions. Default to Ujjain, Madhya Pradesh

Source:
Example
const Kollavarsham = require('kollavarsham');

const options = {
 system: 'SuryaSiddhanta',
 latitude: 10,
 longitude: 76.2
};

const kollavarsham = new Kollavarsham(options);

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

let today = kollavarsham.toGregorianDate(todayInMalayalamEra);  // Not implemented yet

Members


settings :Object

Holds the settings state of the Kollavarsham instance. To access a snapshot use the Kollavarsham#getSettings method

Type:
  • Object
Properties:
Name Type Description
settings
Source: