I have this data:
`date +%Y-%m-%d`\" 00:00:00\"
that return 2015-10-08 00:00:00
2015-10-08 00:00:00
I would like cancel 5 minute:
There's more than one way to subtract a value from the current time, although this should match the format shown in your question:
date -d "-5 min" "+%Y-%m-%d %H:%M:%S"
Result:
2015-10-08 15:26:13