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 |
- Source:
Extends
- BaseDate
Members
-
masaName :string
-
Returns the month name for this instance of SakaDate
Type:
- string
- Source:
Properties:
Name Type Description masaName
-
naksatraName :string
-
Returns the Saka Naksatra name for this instance of SakaDate
Type:
- string
- Source:
Properties:
Name Type Description naksatraName
-
sakaYear :Number
-
Returns the Saka year on this instance of SakaDate (same as the underlyiung
year
property from theBaseDate
class)Type:
- Number
- Source:
Properties:
Name Type Description sakaYear
-
tithi :Number
-
Returns the Tithi on this instance of SakaDate (same as the underlyiung
date
property from theBaseDate
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
- Source:
Properties:
Name Type Description tithi
-
vikramaYear :Number
-
Returns the Vikrama year corresponding to the Saka year of this instance.
Type:
- Number
- Source:
Properties:
Name Type Description vikramaYear