擅长:python、mysql、java
<p>时间格式类似于<a href="https://docs.python.org/library/email.util.html#email.utils.formatdate" rel="nofollow noreferrer">RFC 2822 format (used in emails)</a>:</p>
<pre><code>>>> import email.utils
>>> email.utils.formatdate(usegmt=True)
'Tue, 08 Sep 2015 10:06:04 GMT'
</code></pre>
<p>或者,您可以使用<a href="https://docs.python.org/3/library/datetime.html#strftime-strptime-behavior" rel="nofollow noreferrer">^{<cd1>}</a>获得所需的任何时间格式:</p>
^{pr2}$
<p>其中<a href="https://stackoverflow.com/a/22330133/4279">^{<cd2>} is defined here</a>。在</p>