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?
>
Yes, both of them are valid, but, they are in different formats. dd'T'HH: mm:ss" to parse the short one, but it fails on dd'T'HH: mm:ss.SSSSSS" to parse the
I use "yyyy-MM-
the longer one. If I use "yyyy-MM-
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?
>