REST API timestamp format
What is the format for this timestamp below for REST Web Service for Control Point Execution chapter 7 in Infogix Assure API Guide 9.2?
sourceTimestamp Required dateTime Set to the client’s current timestamp.Reserved
for future use.
Asking because Assure was complaining about unparseable date during testing on this field.
2020-01-08T23:01:29-06:00 <-- this is the timestamp that it is complaining about.
-
It looks like the milliseconds (.###) are missing from your format. Here's a sample of one of mine, taken from the REST API article:
2019-05-03T14:00:00.001-05:00
-
JL, Gerards example is essentially correct, but it is milliseconds that was missing, not seconds. Technicaly, the system is using the following Java SimpleDateFormat for timestamp parsing: "yyyy-MM-dd'T'HH:mm:ss.SSSXXX". The .SSS part is milliseconds, and .000 would be appropriate for situations where you don't have millisecond level values to provide.
Please sign in to leave a comment.
Comments
3 comments