update statstest.fish
This commit is contained in:
parent
9f07722c12
commit
3b1aa02b41
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue