Compare commits

...

2 Commits
0.0.1 ... main

Author SHA1 Message Date
Jan Koppe 3fa11ebaee
output iso week date on sum week 2023-07-31 07:33:03 +02:00
Jan Koppe 481e58df34
make punchclock executable 2023-07-31 07:29:42 +02:00
1 changed files with 2 additions and 1 deletions

3
punchclock Normal file → Executable file
View File

@ -219,6 +219,7 @@ function command_sum {
# date does not accept ISO8601 calendar weeks as input,
# we need to convert to regular ISO8601 %Y-%m-%d first
local MONDAY_DATE=$(dateconv -f %Y-%m-%d $MONDAY_WEEKDAY)
echo ; echo -e "Summary for week \033[1m${MONDAY_WEEKDAY}\033[0m" ; echo
_print_sum_for_multiple_days $MONDAY_DATE 6
;;
"days")
@ -337,4 +338,4 @@ while [[ $# -gt 0 ]]; do
usage
;;
esac
done
done