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

JulianDate Class

Extends BaseDate
Module: julianDate

Represents a Julian date's year, month and day toGregorianDateFromSaka method of the Kollavarsham class returns an instance of this type for dates older than 1st January 1583 AD

INTERNAL/PRIVATE

Constructor

JulianDate

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

Parameters:

  • [year=1] Number optional

    Julian year

  • [month=1] Number optional

    Julian month

  • [day=1] Number optional

    Julian 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

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

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.