Last active
December 13, 2017 16:03
-
-
Save lohanidamodar/033608c7cdd8657bd35d7274f379fd1e to your computer and use it in GitHub Desktop.
Nepali Calendar #nepali-date
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ConversionTable= {"1970":{"1stbaisakh":"1913-04-13", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"1971":{"1stbaisakh":"1914-04-13", "daysonmonth":[31, 31, 32, 31, 32, 30, 30, 29, 30, 29, 30, 30]}, | |
"1972":{"1stbaisakh":"1915-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30]}, | |
"1973":{"1stbaisakh":"1916-04-13", "daysonmonth":[30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31]}, | |
"1974":{"1stbaisakh":"1917-04-13", "daysonmonth":[31, 31, 32, 30, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"1975":{"1stbaisakh":"1918-04-12", "daysonmonth":[31, 31, 32, 32, 30, 31, 30, 29, 30, 29, 30, 30]}, | |
"1976":{"1stbaisakh":"1919-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]}, | |
"1977":{"1stbaisakh":"1920-04-13", "daysonmonth":[30, 32, 31, 32, 31, 31, 29, 30, 29, 30, 29, 31]}, | |
"1978":{"1stbaisakh":"1921-04-13", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"1979":{"1stbaisakh":"1922-04-13", "daysonmonth":[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]}, | |
"1980":{"1stbaisakh":"1923-04-13", "daysonmonth":[30, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]}, | |
"1981":{"1stbaisakh":"1924-04-13", "daysonmonth":[31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30]}, | |
"1982":{"1stbaisakh":"1925-04-13", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"1983":{"1stbaisakh":"1926-04-13", "daysonmonth":[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]}, | |
"1984":{"1stbaisakh":"1927-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]}, | |
"1985":{"1stbaisakh":"1928-04-13", "daysonmonth":[31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30]}, | |
"1986":{"1stbaisakh":"1929-04-13", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"1987":{"1stbaisakh":"1930-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30]}, | |
"1988":{"1stbaisakh":"1931-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]}, | |
"1989":{"1stbaisakh":"1932-04-13", "daysonmonth":[31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"1990":{"1stbaisakh":"1933-04-13", "daysonmonth":[30, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"1991":{"1stbaisakh":"1934-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30]}, | |
"1992":{"1stbaisakh":"1935-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 30]}, | |
"1993":{"1stbaisakh":"1936-04-13", "daysonmonth":[31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"1994":{"1stbaisakh":"1937-04-13", "daysonmonth":[31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"1995":{"1stbaisakh":"1938-04-13", "daysonmonth":[31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"1996":{"1stbaisakh":"1939-04-13", "daysonmonth":[31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"1997":{"1stbaisakh":"1940-04-13", "daysonmonth":[31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"1998":{"1stbaisakh":"1941-04-13", "daysonmonth":[31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"1999":{"1stbaisakh":"1942-04-13", "daysonmonth":[31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2000":{"1stbaisakh":"1943-04-14", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 29, 31]}, | |
"2001":{"1stbaisakh":"1944-04-13", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2002":{"1stbaisakh":"1945-04-13", "daysonmonth":[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]}, | |
"2003":{"1stbaisakh":"1946-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]}, | |
"2004":{"1stbaisakh":"1947-04-14", "daysonmonth":[30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31]}, | |
"2005":{"1stbaisakh":"1948-04-13", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2006":{"1stbaisakh":"1949-04-13", "daysonmonth":[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]}, | |
"2007":{"1stbaisakh":"1950-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]}, | |
"2008":{"1stbaisakh":"1951-04-14", "daysonmonth":[31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31]}, | |
"2009":{"1stbaisakh":"1952-04-13", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2010":{"1stbaisakh":"1953-04-13", "daysonmonth":[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]}, | |
"2011":{"1stbaisakh":"1954-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]}, | |
"2012":{"1stbaisakh":"1955-04-14", "daysonmonth":[31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30]}, | |
"2013":{"1stbaisakh":"1956-04-13", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2014":{"1stbaisakh":"1957-04-13", "daysonmonth":[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]}, | |
"2015":{"1stbaisakh":"1958-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]}, | |
"2016":{"1stbaisakh":"1959-04-14", "daysonmonth":[31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30]}, | |
"2017":{"1stbaisakh":"1960-04-13", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2018":{"1stbaisakh":"1961-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30]}, | |
"2019":{"1stbaisakh":"1962-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31]}, | |
"2020":{"1stbaisakh":"1963-04-14", "daysonmonth":[31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2021":{"1stbaisakh":"1964-04-13", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2022":{"1stbaisakh":"1965-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30]}, | |
"2023":{"1stbaisakh":"1966-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31]}, | |
"2024":{"1stbaisakh":"1967-04-14", "daysonmonth":[31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2025":{"1stbaisakh":"1968-04-13", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2026":{"1stbaisakh":"1969-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]}, | |
"2027":{"1stbaisakh":"1970-04-14", "daysonmonth":[30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31]}, | |
"2028":{"1stbaisakh":"1971-04-14", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2029":{"1stbaisakh":"1972-04-13", "daysonmonth":[31, 31, 32, 31, 32, 30, 30, 29, 30, 29, 30, 30]}, | |
"2030":{"1stbaisakh":"1973-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]}, | |
"2031":{"1stbaisakh":"1974-04-14", "daysonmonth":[30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31]}, | |
"2032":{"1stbaisakh":"1975-04-14", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2033":{"1stbaisakh":"1976-04-13", "daysonmonth":[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]}, | |
"2034":{"1stbaisakh":"1977-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]}, | |
"2035":{"1stbaisakh":"1978-04-14", "daysonmonth":[30, 32, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31]}, | |
"2036":{"1stbaisakh":"1979-04-14", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2037":{"1stbaisakh":"1980-04-13", "daysonmonth":[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]}, | |
"2038":{"1stbaisakh":"1981-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]}, | |
"2039":{"1stbaisakh":"1982-04-14", "daysonmonth":[31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30]}, | |
"2040":{"1stbaisakh":"1983-04-14", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2041":{"1stbaisakh":"1984-04-13", "daysonmonth":[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]}, | |
"2042":{"1stbaisakh":"1985-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]}, | |
"2043":{"1stbaisakh":"1986-04-14", "daysonmonth":[31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30]}, | |
"2044":{"1stbaisakh":"1987-04-14", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2045":{"1stbaisakh":"1988-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30]}, | |
"2046":{"1stbaisakh":"1989-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]}, | |
"2047":{"1stbaisakh":"1990-04-14", "daysonmonth":[31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2048":{"1stbaisakh":"1991-04-14", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2049":{"1stbaisakh":"1992-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30]}, | |
"2050":{"1stbaisakh":"1993-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31]}, | |
"2051":{"1stbaisakh":"1994-04-14", "daysonmonth":[31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2052":{"1stbaisakh":"1995-04-14", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2053":{"1stbaisakh":"1996-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30]}, | |
"2054":{"1stbaisakh":"1997-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31]}, | |
"2055":{"1stbaisakh":"1998-04-14", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2056":{"1stbaisakh":"1999-04-14", "daysonmonth":[31, 31, 32, 31, 32, 30, 30, 29, 30, 29, 30, 30]}, | |
"2057":{"1stbaisakh":"2000-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]}, | |
"2058":{"1stbaisakh":"2001-04-14", "daysonmonth":[30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31]}, | |
"2059":{"1stbaisakh":"2002-04-14", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2060":{"1stbaisakh":"2003-04-14", "daysonmonth":[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]}, | |
"2061":{"1stbaisakh":"2004-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]}, | |
"2062":{"1stbaisakh":"2005-04-14", "daysonmonth":[30, 32, 31, 32, 31, 31, 29, 30, 29, 30, 29, 31]}, | |
"2063":{"1stbaisakh":"2005-04-14", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2064":{"1stbaisakh":"2007-04-14", "daysonmonth":[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]}, | |
"2065":{"1stbaisakh":"2008-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]}, | |
"2066":{"1stbaisakh":"2009-04-14", "daysonmonth":[31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31]}, | |
"2067":{"1stbaisakh":"2010-04-14", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2068":{"1stbaisakh":"2011-04-14", "daysonmonth":[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]}, | |
"2069":{"1stbaisakh":"2012-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]}, | |
"2070":{"1stbaisakh":"2013-04-14", "daysonmonth":[31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30]}, | |
"2071":{"1stbaisakh":"2014-04-14", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2072":{"1stbaisakh":"2015-04-14", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30]}, | |
"2073":{"1stbaisakh":"2016-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31]}, | |
"2074":{"1stbaisakh":"2017-04-14", "daysonmonth":[31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2075":{"1stbaisakh":"2018-04-14", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2076":{"1stbaisakh":"2019-04-14", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30]}, | |
"2077":{"1stbaisakh":"2020-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31]}, | |
"2078":{"1stbaisakh":"2021-04-14", "daysonmonth":[31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2079":{"1stbaisakh":"2022-04-14", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30]}, | |
"2080":{"1stbaisakh":"2023-04-14", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30]}, | |
"2081":{"1stbaisakh":"2024-04-13", "daysonmonth":[31, 31, 32, 32, 31, 30, 30, 30, 29, 30, 30, 30]}, | |
"2082":{"1stbaisakh":"2025-04-14", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30]}, | |
"2083":{"1stbaisakh":"2026-04-14", "daysonmonth":[31, 31, 32, 31, 31, 30, 30, 30, 29, 30, 30, 30]}, | |
"2084":{"1stbaisakh":"2027-04-14", "daysonmonth":[31, 31, 32, 31, 31, 30, 30, 30, 29, 30, 30, 30]}, | |
"2085":{"1stbaisakh":"2028-04-13", "daysonmonth":[31, 32, 31, 32, 31, 31, 30, 30, 29, 30, 30, 30]}, | |
"2086":{"1stbaisakh":"2029-04-14", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30]}, | |
"2087":{"1stbaisakh":"2030-04-14", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 30, 29, 30, 30, 30]}, | |
"2088":{"1stbaisakh":"2031-04-15", "daysonmonth":[30, 31, 32, 32, 30, 31, 30, 30, 29, 30, 30, 30]}, | |
"2089":{"1stbaisakh":"2032-04-14", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30]}, | |
"2090":{"1stbaisakh":"2033-04-14", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30]}, | |
"2091":{"1stbaisakh":"2034-04-14", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 30, 29, 30, 30, 30]}, | |
"2092":{"1stbaisakh":"2035-04-13", "daysonmonth":[31, 31, 32, 32, 31, 30, 30, 30, 29, 30, 30, 30]}, | |
"2093":{"1stbaisakh":"2036-04-14", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30]}, | |
"2094":{"1stbaisakh":"2037-04-14", "daysonmonth":[31, 31, 32, 31, 31, 30, 30, 30, 29, 30, 30, 30]}, | |
"2095":{"1stbaisakh":"2038-04-14", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 30, 30, 30, 30]}, | |
"2096":{"1stbaisakh":"2039-04-15", "daysonmonth":[30, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30]}, | |
"2097":{"1stbaisakh":"2040-04-13", "daysonmonth":[31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30]}, | |
"2098":{"1stbaisakh":"2041-04-14", "daysonmonth":[31, 31, 32, 31, 31, 31, 29, 30, 29, 30, 30, 31]}, | |
"2099":{"1stbaisakh":"2042-04-14", "daysonmonth":[31, 31, 32, 31, 31, 31, 30, 29, 29, 30, 30, 30]}, | |
"2100":{"1stbaisakh":"2043-04-14", "daysonmonth":[31, 32, 31, 32, 30, 31, 30, 29, 30, 29, 30, 30]}}; | |
module.exports = ConversionTable; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
his.nepMap[2000] = [0, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31 ]; | |
this.nepMap[2001] = [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2002] = [0, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2003] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31 ]; | |
this.nepMap[2004] = [0, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31 ]; | |
this.nepMap[2005] = [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2006] = [0, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2007] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31 ]; | |
this.nepMap[2008] = [0, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31 ]; | |
this.nepMap[2009] = [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2010] = [0, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2011] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31 ]; | |
this.nepMap[2012] = [0, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30 ]; | |
this.nepMap[2013] = [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2014] = [0, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2015] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31 ]; | |
this.nepMap[2016] = [0, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30 ]; | |
this.nepMap[2017] = [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2018] = [0, 31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2019] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31 ]; | |
this.nepMap[2020] = [0, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2021] = [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2022] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30 ]; | |
this.nepMap[2023] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31 ]; | |
this.nepMap[2024] = [0, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2025] = [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2026] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31 ]; | |
this.nepMap[2027] = [0, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31 ]; | |
this.nepMap[2028] = [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2029] = [0, 31, 31, 32, 31, 32, 30, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2030] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31 ]; | |
this.nepMap[2031] = [0, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31 ]; | |
this.nepMap[2032] = [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2033] = [0, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2034] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31 ]; | |
this.nepMap[2035] = [0, 30, 32, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31 ]; | |
this.nepMap[2036] = [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2037] = [0, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2038] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31 ]; | |
this.nepMap[2039] = [0, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30 ]; | |
this.nepMap[2040] = [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2041] = [0, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2042] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31 ]; | |
this.nepMap[2043] = [0, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30 ]; | |
this.nepMap[2044] = [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2045] = [0, 31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2046] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31 ]; | |
this.nepMap[2047] = [0, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2048] = [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2049] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30 ]; | |
this.nepMap[2050] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31 ]; | |
this.nepMap[2051] = [0, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2052] = [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2053] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30 ]; | |
this.nepMap[2054] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31 ]; | |
this.nepMap[2055] = [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2056] = [0, 31, 31, 32, 31, 32, 30, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2057] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31 ]; | |
this.nepMap[2058] = [0, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31 ]; | |
this.nepMap[2059] = [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2060] = [0, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2061] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31 ]; | |
this.nepMap[2062] = [0, 30, 32, 31, 32, 31, 31, 29, 30, 29, 30, 29, 31 ]; | |
this.nepMap[2063] = [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2064] = [0, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2065] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31 ]; | |
this.nepMap[2066] = [0, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31 ]; | |
this.nepMap[2067] = [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2068] = [0, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2069] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31 ]; | |
this.nepMap[2070] = [0, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30 ]; | |
this.nepMap[2071] = [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2072] = [0, 31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2073] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31 ]; | |
this.nepMap[2074] = [0, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2075] = [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2076] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30 ]; | |
this.nepMap[2077] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31 ]; | |
this.nepMap[2078] = [0, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2079] = [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30 ]; | |
this.nepMap[2080] = [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30 ]; | |
this.nepMap[2081] = [0, 31, 31, 32, 32, 31, 30, 30, 30, 29, 30, 30, 30 ]; | |
this.nepMap[2082] = [0, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30 ]; | |
this.nepMap[2083] = [0, 31, 31, 32, 31, 31, 30, 30, 30, 29, 30, 30, 30 ]; | |
this.nepMap[2084] = [0, 31, 31, 32, 31, 31, 30, 30, 30, 29, 30, 30, 30 ]; | |
this.nepMap[2085] = [0, 31, 32, 31, 32, 30, 31, 30, 30, 29, 30, 30, 30 ]; | |
this.nepMap[2086] = [0, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30 ]; | |
this.nepMap[2087] = [0, 31, 31, 32, 31, 31, 31, 30, 30, 29, 30, 30, 30 ]; | |
this.nepMap[2088] = [0, 30, 31, 32, 32, 30, 31, 30, 30, 29, 30, 30, 30 ]; | |
this.nepMap[2089] = [0, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30 ]; | |
this.nepMap[2090] = [0, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30 ]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
[2000, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], | |
[2001, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2002, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
[2003, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
[2004, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], | |
[2005, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2006, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
[2007, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
[2008, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31], | |
[2009, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2010, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
[2011, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
[2012, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30], | |
[2013, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2014, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
[2015, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
[2016, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30], | |
[2017, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2018, 31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
[2019, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], | |
[2020, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2021, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2022, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30], | |
[2023, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], | |
[2024, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2025, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2026, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
[2027, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], | |
[2028, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2029, 31, 31, 32, 31, 32, 30, 30, 29, 30, 29, 30, 30], | |
[2030, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
[2031, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], | |
[2032, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2033, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
[2034, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
[2035, 30, 32, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31], | |
[2036, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2037, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
[2038, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
[2039, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30], | |
[2040, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2041, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
[2042, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
[2043, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30], | |
[2044, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2045, 31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
[2046, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
[2047, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2048, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2049, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30], | |
[2050, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], | |
[2051, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2052, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2053, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30], | |
[2054, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], | |
[2055, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2056, 31, 31, 32, 31, 32, 30, 30, 29, 30, 29, 30, 30], | |
[2057, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
[2058, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], | |
[2059, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2060, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
[2061, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
[2062, 30, 32, 31, 32, 31, 31, 29, 30, 29, 30, 29, 31], | |
[2063, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2064, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
[2065, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
[2066, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31], | |
[2067, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2068, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
[2069, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
[2070, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30], | |
[2071, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2072, 31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
[2073, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
[2074, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2075, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2076, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30], | |
[2077, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], | |
[2078, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2079, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
[2080, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30], | |
[2081, 31, 31, 32, 32, 31, 30, 30, 30, 29, 30, 30, 30], | |
[2082, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30], | |
[2083, 31, 31, 32, 31, 31, 30, 30, 30, 29, 30, 30, 30], | |
[2084, 31, 31, 32, 31, 31, 30, 30, 30, 29, 30, 30, 30], | |
[2085, 31, 32, 31, 32, 30, 31, 30, 30, 29, 30, 30, 30], | |
[2086, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30], | |
[2087, 31, 31, 32, 31, 31, 31, 30, 30, 29, 30, 30, 30], | |
[2088, 30, 31, 32, 32, 30, 31, 30, 30, 29, 30, 30, 30], | |
[2089, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30], | |
[2090, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30] | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nepMap: { | |
2000: [0, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], | |
2001: [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
2002: [0, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
2003: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
2004: [0, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], | |
2005: [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
2006: [0, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
2007: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
2008: [0, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31], | |
2009: [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
2010: [0, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
2011: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
2012: [0, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30], | |
2013: [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
2014: [0, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
2015: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
2016: [0, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30], | |
2017: [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
2018: [0, 31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
2019: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], | |
2020: [0, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30], | |
2021: [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
2022: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30], | |
2023: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], | |
2024: [0, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30], | |
2025: [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
2026: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
2027: [0, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], | |
2028: [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
2029: [0, 31, 31, 32, 31, 32, 30, 30, 29, 30, 29, 30, 30], | |
2030: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
2031: [0, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], | |
2032: [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
2033: [0, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
2034: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
2035: [0, 30, 32, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31], | |
2036: [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
2037: [0, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
2038: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
2039: [0, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30], | |
2040: [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
2041: [0, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
2042: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
2043: [0, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30], | |
2044: [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
2045: [0, 31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
2046: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
2047: [0, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30], | |
2048: [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
2049: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30], | |
2050: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], | |
2051: [0, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30], | |
2052: [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
2053: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30], | |
2054: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], | |
2055: [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
2056: [0, 31, 31, 32, 31, 32, 30, 30, 29, 30, 29, 30, 30], | |
2057: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
2058: [0, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], | |
2059: [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
2060: [0, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
2061: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
2062: [0, 30, 32, 31, 32, 31, 31, 29, 30, 29, 30, 29, 31], | |
2063: [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
2064: [0, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
2065: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
2066: [0, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31], | |
2067: [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
2068: [0, 31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
2069: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
2070: [0, 31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30], | |
2071: [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
2072: [0, 31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30], | |
2073: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], | |
2074: [0, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30], | |
2075: [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
2076: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30], | |
2077: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], | |
2078: [0, 31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30], | |
2079: [0, 31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], | |
2080: [0, 31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30], | |
2081: [0, 31, 31, 32, 32, 31, 30, 30, 30, 29, 30, 30, 30], | |
2082: [0, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30], | |
2083: [0, 31, 31, 32, 31, 31, 30, 30, 30, 29, 30, 30, 30], | |
2084: [0, 31, 31, 32, 31, 31, 30, 30, 30, 29, 30, 30, 30], | |
2085: [0, 31, 32, 31, 32, 30, 31, 30, 30, 29, 30, 30, 30], | |
2086: [0, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30], | |
2087: [0, 31, 31, 32, 31, 31, 31, 30, 30, 29, 30, 30, 30], | |
2088: [0, 30, 31, 32, 32, 30, 31, 30, 30, 29, 30, 30, 30], | |
2089: [0, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30], | |
2090: [0, 30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30], | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var NepaliDates = (function(){ | |
function zeroFill(num, targetLength, forceSign) { | |
var absNumber = '' + Math.abs(num), zerosToFill = targetLength - absNumber.length, sign = num >= 0; | |
return (sign ? (forceSign ? '+' : '') : '-') + | |
Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber; | |
} | |
function getNeYear (digit) { | |
var nDigits = ['०','१','२','३','४','५','६','७','८','९'], | |
digits = digit.toString().split(''), | |
output = []; | |
if(digits.length > 4) { | |
output = "This method doesn't support more than 4 strings."; | |
digits.length = 4; | |
} | |
for(var i=0; i < digits.length; i++) { | |
var ii = parseInt(digits[i], 10); | |
for(var _i=0; _i < 10; _i++) { | |
if (_i === ii) { | |
output.push(nDigits[_i]) | |
} | |
} | |
} | |
return output.join(''); | |
} | |
function getNeMonthName (digit) { | |
var nMonths = ['बैशाख','जेठ','असार','साउन','भदौ','असोज','कार्तिक','मङि्सर','पुष','माघ','फागुन','चैत']; | |
digit = parseInt(digit, 10) - 1, | |
output = ''; | |
if(digit > 11) { | |
output = "Month digit can't be more than 12. Falliing back to 1."; | |
digit = 0; | |
} | |
for (var i = 0; i < nMonths.length; i++) { | |
if(i === digit){ | |
output = nMonths[i]; | |
break; | |
} | |
}; | |
return output; | |
} | |
function getNeWeekName (digit) { | |
var nWeeks = ['आइतबार','सोमबार','मङ्गलबार','बुधबार','बिहिबार','शुक्रबार','शनिबार']; | |
digit = parseInt(digit, 10) - 1, | |
output = ''; | |
if(digit > 6) { | |
output = "Week digit can't be more than 7. Falliing back to 1."; | |
digit = 0; | |
} | |
for (var i = 0; i < nWeeks.length; i++) { | |
if(i === digit) { | |
output = nWeeks[i]; | |
break; | |
} | |
}; | |
return output; | |
} | |
return { | |
getNumber: getNeYear, | |
getMonth: getNeMonthName, | |
getWeek: getNeWeekName | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment