unix shell script to get date 30 minutes ago in GMT unix shell script to get date 30 minutes ago in GMT shell shell

unix shell script to get date 30 minutes ago in GMT


You can also do this:

TZ='UTC+0:30' date


 /usr/bin/env TZ='GMT' date -d '-30 minutes'

This is with the version of the date command that's part of the GNU coreutils. I don't know if it works for other versions of the date program.