Python/Datetime: Difference between revisions

From Fundamental Ramen
Jump to navigation Jump to search
Line 12: Line 12:
= Formatting =
= Formatting =
{| class="wikitable"
{| class="wikitable"
! ||
! TODO || Code
|-
|-
| ||
| ISO 8601 ||
<source lang="python3">
</source>
 
|-
| RFC 2322 ||
<source lang="python3">
</source>
|}
|}



Revision as of 08:01, 18 May 2018

Parsing

TODO Code
Parse RFC Time
import datetime
datetime.datetime.strptime(s, '%a, %d %b %Y %H:%M:%S GMT')

Formatting

TODO Code
ISO 8601
RFC 2322

Manipulate