update statstest.fish

This commit is contained in:
lee2sman 2021-07-17 04:01:48 -04:00
parent 9f07722c12
commit 3b1aa02b41
1 changed files with 8 additions and 2 deletions

View File

@ -24,8 +24,14 @@ end
echo "previous month:" $pmonth
echo "previous month's year" $pyear
set total_days_prev_month 30
# set total_days_prev_month (cal $pmonth $pyear |egrep -v [a-z] |wc -w) # i don't have date
# set total_days_prev_month (cal $pmonth $pyear |egrep -v [a-z] |wc -w)
#
# we don't have cal installed
# so here is my workaround
#
# J F M A M J J A S O N D
set month_days 31 28 31 30 31 30 31 31 30 31 30 31
set total_days_prev_month $month_days[$pmonth]
echo "# days last month:" $total_days_prev_month
# loop through days of prev month starting on same day of month