xsl-list
[Top] [All Lists]

RFC 822

2005-09-23 03:02:59
This is my RFC 822 format picture. 

<xsl:variable
    name="gmt"
    select="adjust-dateTime-to-timezone(
        $dateTime, xdt:dayTimeDuration('PT0H'))"/>

<xsl:value-of select="format-dateTime($gmt,
    '[FNn,*-3], [D01] [MNn,*-3] [Y0001] [H01]:[m01]:[s01] GMT',
    'en', (), 'US')"/>

For dateTime...

2005-09-21T02:47:00Z

This emits...

Wed, 21 Sep 2005 02:47:00 GMT

I've tried a number of varitions on the time zone, [z] [Z] and [ZN,*-3].

Those pictures translate to "Z" when I expect GMT or UTC.

I'm pretty sure I'm doing something terribly wrong and I don't want
to lose my timestamps.

Where's my error?

(Sorry, for asking so many questions at once. I've kinda been
    storing them up. I'm doing a clean up.)

--
Alan Gutierrez - alan(_at_)engrm(_dot_)com
    - http://engrm.com/blogometer/index.html
    - http://engrm.com/blogometer/rss.2.0.xml

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>