[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make standard If-Modified-Since headers

From: Robert J. Chassell
Subject: Re: make standard If-Modified-Since headers
Date: Thu, 28 Feb 2008 02:31:05 +0000 (UTC)

Most HTTP date/time stamps use the numeric form which in this
symbolism has a small z, %z.

For example, Ted Zlatanov wrote on 

    Date: Wed, 27 Feb 2008 16:45:26 -0600

Even when (system-time-locale "C") produces UTC, it would make sense
to provide

(defun url-get-normalized-date (&optional specified-time)
 "Return a 'real' date string that most HTTP servers can understand."
 (let ((system-time-locale "C"))
   (format-time-string "%a, %d %b %Y %T %z"
   (or specified-time (current-time)) t)))

    Robert J. Chassell                          GnuPG Key ID: 004B4AC8
    address@hidden                         address@hidden
    http://www.rattlesnake.com                  http://www.teak.cc

reply via email to

[Prev in Thread] Current Thread [Next in Thread]