Junichi Uekawa <[EMAIL PROTECTED]> wrote:

> > > > I was letting Junichi take care of all issues relative to this file,
> > > > since he is the author and has CVS access.  I'll let him answer, but I
> > > > think your suggestion is a good idea.
> > > > 
> > > > There's also this one to look at:
> > > > 
> > > >  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=364234
> > > 
> > > Humph, thanks.
> > > 
> > > considering
> > >   http://www.opengroup.org/onlinepubs/009695399/functions/strftime.html
> > > 
> > > and considering xemacs help for format-time-string claims:
> > >   The number of options reflects the `strftime' function.
> > > 
> > > that's a bug on xemacs...
> > 
> > :-) 
> > 
> > Might still take a long time to get fixed if you choose to not work
> > around it.  Up to you.  Please reassign the bug to xemacs if you decide
> > to go that route.
> 
> I've discovered the mew hackers have done a better job (without fork).
> 
> (defsubst mew-time-tmzn-int ()
>   (let ((tz (car (current-time-zone))))
>     (if (< tz 0)
>       (format "-%02d%02d" (/ (- tz) 3600) (/ (% (- tz) 3600) 60))
>       (format "+%02d%02d" (/ tz 3600) (/ (% tz 3600) 60)))))
> 
> (defsubst mew-time-ctz-to-rfc (time)
>   (let ((system-time-locale "C")
>       (tmzn-int (mew-time-tmzn-int)))
>     ;; XEmacs doesn't have %z
>     (format (format-time-string "%a, %d %b %Y %T %%s (%Z)" time) tmzn-int)))
> 
> I'm inclined to use this instead.

Go for it!

-- 
Peter


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to