Comment 2 for bug 1240173

Revision history for this message
Haili Ma (hailim) wrote : Re: [Bug 1240173] Re: Different timestamp format for V2 API

Yes, both of them are valid, but, they are in different formats.
I use "yyyy-MM-dd'T'HH:mm:ss" to parse the short one, but it fails on
the longer one. If I use "yyyy-MM-dd'T'HH:mm:ss.SSSSSS" to parse the
longer one, it does not work for the first one so that I need to convert
one to another. Do you have recommended solution or can you return the
timestamp in one format?

We use some Java package to parse it:

org.joda.time.format
DateTimeFormatter

Thanks,
Haili

On Tue, 2013-10-15 at 18:31 +0000, Doug Hellmann wrote:
> Both of those are valid timestamps. The second example includes
> fractional seconds.
>
> What are you using to parse the values?
>