title: Convert timezone offset number of hours to timezone offset in (military?) hours
body: <p>I am using WordPress and jQuery Timepicker.</p>
  
  <p>Wordpress gives timezone offset in hours: like +2 or -3.5</p>
  
  <p>jQuery Timepicker takes offset in military hours: +0200 or -0330</p>
  
  <p>I am currently using something like this:</p>
  
  <pre><code>gmt_offset = -4;
  hrs_offset = gmt_offset.replace('-', '-0') + "00";
  
  = -0400
  </code></pre>
  
  <p>But that will break if the offset is not a single negative digit.</p>
  
  <pre><code>gmt_offset = -3.5;
  hrs_offset = gmt_offset.replace('-', '-0') + "00";
  
  = -03.500  //No good...
  
  need: -0330
  </code></pre>
  
  <p>Ack! Can someone help me figure this out?</p>