കൊല്ലവർഷം - JavaScript API (v1.3.6)
Show:

KollavarshamDate Class

Represents a Kollavarsham date's year, month and date

Constructor

KollavarshamDate

(
  • [year=1]
  • [month=1]
  • [day=1]
)

Parameters:

  • [year=1] Number optional

    The Kollavarsham year

  • [month=1] Number optional

    The Kollavarsham month

  • [day=1] Number optional

    The Kollavarsham day

Methods

getMasaName

(
  • masaNumber
)
Saka : string

Returns the month names object that has Saka, Saura and Kollavarsham (English & Malayalam) month names for the specified index masaNumber

Parameters:

  • masaNumber Number

Returns:

Saka : string:

, saura : {string}, enMalayalam : {string}, mlMalayalam : {string} } }

toString

()

Converts the Date to a nicely formatted string with year, month and date

Properties

ahargana

Number

The Ahargana corresponding to this instance of the date. Set separately after an instance is created

In Sanskrit ahoratra means one full day and gana means count. Hence, the Ahargana on any given day stands for the number of lunar days that have elapsed starting from an epoch.

Source: http://cs.annauniv.edu/insight/Reading Materials/astro/sharptime/ahargana.htm

date

Number

The date corresponding to this instance of the date.

gregorianDate

Date

The gregorian date corresponding to this instance of the date. Set separately after an instance is created

julianDay

Number

The Julian Day corresponding to this instance of the date. Set separately after an instance is created Julian day is the continuous count of days since the beginning of the Julian Period used primarily by astronomers.

Source: https://en.wikipedia.org/wiki/Julian_day

masaName

String

Returns the Kollavarsham month name (in English) for this instance of date

mlMasaName

String

Returns the Kollavarsham month name (in Malayalam) for this instance of date

mlNaksatraName

String

Returns the Kollavarsham Naksatra name (in Malayalam) for this instance of date

mlWeekdayName

String

Returns the weekday (in Malayalam) for the current instance of date.

month

Number

The month corresponding to this instance of the date.

naksatra

saka: String, enMalayalam: string, mlMalayalam: string

The Naksatra (Star) for this instance of the date. Set separately after an instance is created

naksatraName

String

Returns the Kollavarsham Naksatra name (in English) for this instance date

sauraDivasa

Number

The Saura Divasa (Solar Calendar Day) for this instance of the date. Set separately after an instance is created

sauraMasa

Number

The Saura Masa (Solar Calendar Month) for this instance of the date. Set separately after an instance is created

sauraMasaName

String

Returns the Saura Masa name for the current instance of date.

weekdayName

String

Returns the weekday (in English) for the current instance of date.

year

Number

The year corresponding to this instance of the date.