Skip to content

Commit

Permalink
fix: update months total days data
Browse files Browse the repository at this point in the history
  • Loading branch information
aj3sh committed Jan 13, 2025
1 parent 15ec7e6 commit 6f40a00
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions dateConverter/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var enLeapMonths = [12]int8{31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}

var npMonthData = [100]NepaliMonthData{
{[12]int8{30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31}, 365}, // 2000 BS - 1943/1944 AD
{[12]int8{31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30}, 365}, // 2001 BS
{[12]int8{31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30}, 365},
{[12]int8{31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30}, 365},
{[12]int8{31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31}, 366},
{[12]int8{30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31}, 365},
Expand Down Expand Up @@ -103,26 +103,26 @@ var npMonthData = [100]NepaliMonthData{
{[12]int8{31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31}, 366},
{[12]int8{31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30}, 365},
{[12]int8{31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30}, 365},
{[12]int8{31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30}, 365}, // 2080 BS
{[12]int8{31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31}, 366},
{[12]int8{30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30}, 365},
{[12]int8{31, 31, 32, 31, 31, 30, 30, 30, 29, 30, 30, 30}, 365},
{[12]int8{31, 31, 32, 31, 31, 30, 30, 30, 29, 30, 30, 30}, 365},
{[12]int8{31, 32, 31, 32, 30, 31, 30, 30, 29, 30, 30, 30}, 366},
{[12]int8{30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30}, 365},
{[12]int8{31, 31, 32, 31, 31, 31, 30, 30, 29, 30, 30, 30}, 366},
{[12]int8{30, 31, 32, 32, 30, 31, 30, 30, 29, 30, 30, 30}, 365},
{[12]int8{30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30}, 365},
{[12]int8{30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30}, 365},
{[12]int8{31, 31, 32, 31, 31, 31, 30, 30, 29, 30, 30, 30}, 366},
{[12]int8{30, 31, 32, 32, 31, 30, 30, 30, 29, 30, 30, 30}, 365},
{[12]int8{30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30}, 365},
{[12]int8{31, 31, 32, 31, 31, 30, 30, 30, 29, 30, 30, 30}, 365},
{[12]int8{31, 31, 32, 31, 31, 31, 30, 29, 30, 30, 30, 30}, 366},
{[12]int8{30, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30}, 364},
{[12]int8{31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 30, 30}, 366},
{[12]int8{31, 31, 32, 31, 31, 31, 29, 30, 29, 30, 29, 31}, 365},
{[12]int8{31, 31, 32, 31, 31, 31, 30, 29, 29, 30, 30, 30}, 365}, // 2099 BS - 2042 AD
{[12]int8{31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30}, 365},
{[12]int8{31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31}, 366}, // 2081 BS
{[12]int8{31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30}, 365},
{[12]int8{31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30}, 365},
{[12]int8{31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31}, 366},
{[12]int8{30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31}, 365},
{[12]int8{31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30}, 365},
{[12]int8{31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30}, 365},
{[12]int8{31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31}, 366},
{[12]int8{30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31}, 365},
{[12]int8{31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30}, 365},
{[12]int8{31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30}, 365},
{[12]int8{31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31}, 366},
{[12]int8{31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31}, 365},
{[12]int8{31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30}, 365},
{[12]int8{31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30}, 365},
{[12]int8{31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31}, 366},
{[12]int8{31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30}, 365},
{[12]int8{31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30}, 365},
{[12]int8{31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30}, 365}, // 2099 BS - 2042/2043 AD
}

func enMinYear() int {
Expand Down

0 comments on commit 6f40a00

Please sign in to comment.