all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Robert J. Chassell" <bob@rattlesnake.com>
To: emacs-devel@gnu.org
Subject: Re: make standard If-Modified-Since headers
Date: Thu, 28 Feb 2008 02:31:05 +0000 (UTC)	[thread overview]
Message-ID: <m1JUYY5-002K4MC@rattlesnake.com> (raw)
In-Reply-To: <86tzjuow6x.fsf@lifelogs.com> (message from Ted Zlatanov on Wed,  27 Feb 2008 16:45:26 -0600)

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
    bob@rattlesnake.com                         bob@gnu.org
    http://www.rattlesnake.com                  http://www.teak.cc




  parent reply	other threads:[~2008-02-28  2:31 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <86y79m3u0q.fsf@lifelogs.com>
     [not found] ` <87ve4q2cyf.fsf@jidanni.org>
2008-02-15 20:44   ` RSS If-Modified-Since Ted Zlatanov
2008-02-26 23:44     ` make standard If-Modified-Since headers jidanni
2008-02-27 15:08       ` Ted Zlatanov
2008-02-27 15:22         ` Thien-Thi Nguyen
2008-02-27 16:42           ` Ted Zlatanov
2008-02-27 17:47             ` Ted Zlatanov
2008-02-27 22:24               ` Jason Rumney
2008-02-27 22:39                 ` Jason Rumney
2008-02-27 22:45                 ` Ted Zlatanov
2008-02-28  1:46                   ` Stefan Monnier
2008-02-28  2:31                   ` Robert J. Chassell [this message]
2008-02-28 17:49                     ` Ted Zlatanov
2008-02-28 18:23                       ` Stefan Monnier
2008-02-28 18:54                         ` Ted Zlatanov
2008-02-28 19:12                           ` Miles Bader
2008-02-28 19:20                           ` Stefan Monnier
2008-02-28 19:44                             ` Ted Zlatanov
2008-02-28 20:58                           ` Reiner Steib
2008-02-28  2:16                 ` Robert J. Chassell
2008-02-28 10:22                   ` Juanma Barranquero
2008-02-27 20:26           ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1JUYY5-002K4MC@rattlesnake.com \
    --to=bob@rattlesnake.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.