<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="post-text" itemprop="text">
      <p>The land area of China is 60-degree longitude from west to
        east. According to the demarcation of the world time zoning
        standard, <br>
        the land area of China lies between the eastern fifth to ninth
        time zones, there are 5 time zones in china in fact.
        <br>
        Currently, all the places in China have adopted the eastern
        eighth time zone for the sake of convenience. It is the
        so-called “<em>Beijing Time</em>”.</p>
      <p>I knew there is a difference between localtime and timezone
        time.<br>
        Localtime: The official time in a local region (adjusted for
        location around the Earth); established by law or custom.<br>
        Timezone: Any of the 24 regions of the globe (loosely divided by
        longitude) throughout which the same standard time is used.<br>
        Timezone time : If location A is belong to timezone X, the time
        of timezone X is the location A 's timezone time. </p>
      <p>For Urumqi,localtime is the time of east 8 timezone, but
        timezone time is the time of east 6 timezone.
        <br>
        How can I get the timezone time of urumqi with python code?</p>
      <pre><code>from datetime import datetime, timedelta  
from pytz import timezone  
import pytz  
tz = pytz.timezone('Asia/Urumqi')
dt= tz.localize(datetime(2002, 10, 27, 6, 0, 0))
fmt = '%Y-%m-%d %H:%M:%S %Z%z'
print(dt.strftime(fmt))
2002-10-27 06:00:00 CST+0800
</code></pre>
      <p>It is a wrong answer,the timezone time is 2002-10-27 04:00:00
        +0600 .<code>2002-10-27 06:00:00 CST+0800</code> is the
        localtime for Urumiq(by law in china).</p>
    </div>
  </body>
</html>