title: Convert "PST" to "US/Pacific" for use with Pytz
body: <p>I'm trying to create HTTP endpoints:</p>
  <ol>
  <li>one that returns posts to a user that were created in a given month in the <strong>requestor's time zone</strong>.</li>
  <li>another one that gets the <em>months</em> possible for post*.</li>
  </ol>
  <h2>Examples</h2>
  <h3>(1) get posts in month of requestor's timezone</h3>
  <h3>(2) get possible months for posts</h3>
  <p>For example if the user made posts in <code>Sept-November</code> but none in <code>December</code> then <code>Jan</code> onward it wouldn't return <code>December</code>.
  But it takes the time zone in <code>&quot;PST&quot;</code> format, because it does a <strong>SQL query</strong>.</p>
  <h2>Problems</h2>
  <p>Unfortunately <a href="https://pythonhosted.org/pytz" rel="nofollow noreferrer"><code>pytz</code></a>, the library I'm using for getting all posts from a <em>month</em>, only accepts <em>time zone</em> in the format <code>&quot;US/Pacific&quot;</code>.</p>
  <h2>Questions</h2>
  <ol>
  <li>What is the format or string representation <code>&quot;US/Pacific&quot;</code> called ?</li>
  <li>How can I convert the string formats <code>&quot;PST&quot;</code>, <code>&quot;UCT&quot;</code> or <code>&quot;CST&quot;</code> to their respective formats like <code>&quot;US/Pacific&quot;</code>, etc. in Python ?</li>
  <li>What's the name for this format like <code>&quot;US/Pacific&quot;</code> ?</li>
  <li>Is there a sort of dictionary that maps <code>&quot;PST&quot;</code> to <code>&quot;US/Pacific&quot;</code> ?</li>
  </ol>