[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Printing RFC3339 timezone?

Austin Ziegler

1/25/2006 1:29:00 PM

On 24/01/06, csn <cool_screen_name90001@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 * halostatue@gmail.com
* Alternate: austin@halostatue.ca