F1zz4
F1zz4

Reputation: 13

The best representation for duration between dates in rest api

I'm implementing a rest API to repent some business stuff. One of the elements to return is the duration of some operations, represented by a specific time. I am wondering: what are the most common ways to represent that kind of data? Currently, I am trying to use ISO 8601 duration, but maybe this is not the best format for some reasons?

{
  ...
  "averageDuration": "PT9.705S"
  ...
}

Upvotes: 0

Views: 113

Answers (0)

Related Questions