Quantcast
Viewing all articles
Browse latest Browse all 12162

Re: ParseException in message delay stamp due to microseconds

Thanks for the idea, but DatatypeConverter isn't implemented in Android. Also, after some testing I found that it actually broke some tests. For example, if you try the code:

Calendar cal = DatatypeConverter.parseDateTime("2014-09-16T15:14:13.123456+0000");

That doesn't work. So you have to make sure it's not in that format.

 

It's really frustrating; in this day and age we still don't have built in parsers that just work!

 

Phil


Viewing all articles
Browse latest Browse all 12162

Trending Articles