the following code:

        Time t = new Time("GMT");
        t.parse3339("2010-06-25T11:30:00-07:00");

produces the following error:

        android.util.TimeFormatException: Unexpected 0 at position 19.
Expected + or -

my understanding is that the format of the timestamp meets the
requirements:

        "2010-06-25T11:30:00-07:00"

any thoughts?  here are the results of some more investigation:

        Time t = new Time("GMT");
        t.parse3339("2010-06-25T11:30:00.000Z");                // works
        t.parse3339("2010-06-25T11:30:00.000-08:00");   // works
        t.parse3339("2010-06-25T11:30:00Z");                    // works
        t.parse3339("2010-06-25T11:30:00-08:00");               // BROKEN

it appears that the fractional sections are required when a timezone
offset is present.

i'm using android 2.1 (API 7).

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to