Python pytz: Revision history

From wikinotes

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

6 May 2018

  • curprev 19:1419:14, 6 May 2018Will talk contribs 572 bytes +572 Created page with "<source lang="python"> def validate_datetime( mydt ): if mydt.tzinfo != pytz.utc: raise TypeError('Expected a UTC datetime object with tzinfo set to UTC') </source> <sour..."