[Baypiggies] HTTP date format
alexander.young at gmail.com
Wed Feb 17 15:58:53 EST 2016
Something like this?
def tzname(self, dt):
def utcoffset(self, dt):
def dst(self, dt):
datetime(1994, 11, 6, 8, 49, 37, 0, GMT()).strftime('%a, %d %b %Y %H:%M:%S
'Sun, 06 Nov 1994 08:49:37 GMT'
On Wed, Feb 17, 2016 at 12:52 PM Fahrzin Hemmati via Baypiggies <
baypiggies at python.org> wrote:
> Set usegmt=True to get the right timezone string.
> On Wed, Feb 17, 2016 at 11:44 AM, Ian Zimmerman <itz at buug.org> wrote:
>> Is there a _simple_ way of formatting a date/time (in any of the
>> representations native to the Python standard library) in the format
>> specified by RFC 7231 ?
>> I do not consider an implementation simple if it contains its own lists
>> of day and month names, such as  does.
>> At some point, I will have to parse the format as well.
>> Please *no* private copies of mailing list or newsgroup messages.
>> Rule 420: All persons more than eight miles high to leave the court.
>> Baypiggies mailing list
>> Baypiggies at python.org
>> To change your subscription options or unsubscribe:
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Baypiggies