original_string: public function offset($timezone)
      {
          $timeOffset = (new \DateTimeZone($timezone))->getOffset(new \DateTime('now', new \DateTimeZone('UTC')));
  
          if($timeOffset < 0) {
  
              return 'UTC -'. gmdate('H:i', -$timeOffset);
  
          } else {
  
              return 'UTC +'. gmdate('H:i', $timeOffset);
          }
      }
code: public function offset($timezone)
      {
          $timeOffset = (new \DateTimeZone($timezone))->getOffset(new \DateTime('now', new \DateTimeZone('UTC')));
  
          if($timeOffset < 0) {
  
              return 'UTC -'. gmdate('H:i', -$timeOffset);
  
          } else {
  
              return 'UTC +'. gmdate('H:i', $timeOffset);
          }
      }
code_tokens: public function offset ( $ timezone ) { $ timeOffset = ( new \ DateTimeZone ( $ timezone ) ) -> getOffset ( new \ DateTime ( 'now' , new \ DateTimeZone ( 'UTC' ) ) ) ; if ( $ timeOffset < 0 ) { return 'UTC -' . gmdate ( 'H:i' , - $ timeOffset ) ; } else { return 'UTC +' . gmdate ( 'H:i' , $ timeOffset ) ; } }
docstring: Get Time Offset
docstring_tokens: Get Time Offset