Hi,

> i'm not a big fan of choice ;-) if you're not going to return the tz ID, i'd 
> just stick w/the ":" & offset from GMT

This is for formatting a date in a user specified way. Issue is is some formats 
(ISO standards even) drop the ":" For instance:
http://en.wikipedia.org/wiki/ISO_8601

Guess another question is do you pad single digit hours or not - which 
currently I do.

And I also need to be able to able to support adding GMT in there - thanks for 
point that out. Does anyone know if "GMT" is localised or is it always "GMT"?

So the possible range of values expands to:
-6
-06
-0600
-600
-06:00
-6:00
GMT-06:00
Z-06:00

I'm think (unless anyone have better ideas) I'll reduce the format to just "Z" 
and add two properties padTimeZone (default false) and timeZonePrefix (default 
to "").  timeZonePrefix coudl then be set to "Z" or "GMT" as needed.

Thanks,
Justin

Reply via email to