Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Printing RFC3339 timezone?

5 views
Skip to first unread message

Bob Showalter

unread,
Jan 25, 2006, 8:28:31 AM1/25/06
to
csn wrote:
> How can I print a valid RFC3339 time zone (used by Atom)? Presumably
> using strftime; which outputs -HHMM for "%z" (which isn't documented),
> but RFC3339 requires -HH:MM (I know RFC3339 allows 'Z', but I'd like the
> actual time zone).

Take a look at:

http://www.ruby-doc.org/stdlib/libdoc/time/rdoc/classes/Time.html#M004641


Austin Ziegler

unread,
Jan 25, 2006, 8:29:03 AM1/25/06
to
On 24/01/06, csn <cool_scree...@yahoo.com> wrote:
> How can I print a valid RFC3339 time zone (used by Atom)? Presumably
> using strftime; which outputs -HHMM for "%z" (which isn't documented),
> but RFC3339 requires -HH:MM (I know RFC3339 allows 'Z', but I'd like the
> actual time zone).

Try using Time#xmlschema.

-austin
--
Austin Ziegler * halos...@gmail.com
* Alternate: aus...@halostatue.ca


0 new messages