I am trying to offset a time in the following format. I am unable to get this working. Any suggestions?
This doesn't work
DATE0="26Sep21 06:10:14"
DATE1=$(date -d "$DATE0 + 1 seconds" +'%d%b%y %H:%M:%S');
echo $DATE1
This doesn't work either
n=10
DATE0="26Sep21 06:10:14"
DATE1=$(date -d "$DATE0 + $n seconds" +'%d%b%y %H:%M:%S');
echo $DATE1