Class: SakaDate

sakaDate. SakaDate

SakaDate


new SakaDate( [year] [, month] [, tithi] [, paksa])

Parameters:
Name Type Argument Default Description
year Number <optional>
1

Saka Year

month Number <optional>
1

Saka Month

tithi Number <optional>
1

Lunar Day

paksa string <optional>
'Suklapaksa'

Lunar Phase - Valid values are Suklapaksa (default) or 'Krsnapaksa`

Source:

Extends

  • BaseDate

Members


masaName :string

Returns the month name for this instance of SakaDate

Type:
  • string
Properties:
Name Type Description
masaName
Source:

naksatraName :string

Returns the Saka Naksatra name for this instance of SakaDate

Type:
  • string
Properties:
Name Type Description
naksatraName
Source:

sakaYear :Number

Returns the Saka year on this instance of SakaDate (same as the underlyiung year property from the BaseDate class)

Type:
  • Number
Properties:
Name Type Description
sakaYear
Source:

tithi :Number

Returns the Tithi on this instance of SakaDate (same as the underlyiung date property from the BaseDate class)

In Vedic timekeeping, a tithi (also spelled thithi) is a lunar day, or the time it takes for the longitudinal angle between the Moon and the Sun to increase by 12°. Tithis begin at varying times of day and vary in duration from approximately 19 to approximately 26 hours.

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

Type:
  • Number
Properties:
Name Type Description
tithi
Source:

vikramaYear :Number

Returns the Vikrama year corresponding to the Saka year of this instance.

Type:
  • Number
Properties:
Name Type Description
vikramaYear
Source: