Assure DQ

 View Only
  • 1.  REST API timestamp format

    Posted 01-13-2020 10:52

    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. 



  • 2.  RE: REST API timestamp format

    Employee
    Posted 01-14-2020 07:38

    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


  • 3.  RE: REST API timestamp format

    Employee
    Posted 01-30-2020 10:42

    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.



  • 4.  RE: REST API timestamp format

    Employee
    Posted 01-30-2020 11:11

    Updated my comment to correct the typo noted above - thanks!