title: need to split "date" command ouput in shell
body: <p>I want to split date command output and extract time zone difference and represent that time difference in terms of 30 min.
  I tried this: </p>
  
  <pre><code>date -R | awk 'NF&gt;1{print $NF}'
  </code></pre>
  
  <p>I got the output -0530
  This means 5 hours and 30 min difference from GMT. Now I want to convert this -0530 in to -11. So what logic should I use in shell command?</p>