Improve output

This commit is contained in:
Philippe Caseiro 2022-03-24 14:04:07 +01:00
parent c563ba96f0
commit 5a00aee3f2

5
badgy
View File

@ -68,10 +68,11 @@ getCapitalTime()
st=$(date --date="${starts}" +'%s') st=$(date --date="${starts}" +'%s')
ends=$(echo ${cl} | jq -rc ".end") ends=$(echo ${cl} | jq -rc ".end")
echo echo
echo " Start: $(date --date=${starts} +'%A %d %B %Y : %H:%M')" echo " $(date --date=${starts} +"%A %d %B %Y:")"
echo " Start: $(date --date=${starts} +'%H:%M')"
if [ "${ends}" != "null" ];then if [ "${ends}" != "null" ];then
ed=$(date --date="${ends}" +'%s') ed=$(date --date="${ends}" +'%s')
echo " End: $(date --date=${ends} +'%A %d %B %Y : %H:%M')" echo " End: $(date --date=${ends} +'%H:%M')"
else else
ed=$(date +'%s') ed=$(date +'%s')
echo " End: running" echo " End: running"