From the course: xAPI Foundations

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

The Timestamp element

The Timestamp element

From the course: xAPI Foundations

Start my 1-month free trial

The Timestamp element

- [Instructor] The last element we'll discuss is the timestamp element. Timestamp records when the activity or event took place, not when the statement is necessarily created or sent. Although we'll come back to that in another lesson. Timestamps must not be set in the future. What this means is that if you are sending the statement on Monday, you can't have a timestamp for next Tuesday. Remember, xAPI is recording something that did happen, not something that will. That said, a learning record store should not reject a statement set in the future. Although in this case, we're talking a few seconds. Just like watches, the clock on your computer may be a few milliseconds, or even a few seconds ahead of the clock on the LRS. In these cases, the LRS should not reject those statements. Timestamps must follow a very specific format, namely they must meet ISO 8601 and should meet RFC 3339. Now if you don't know what those mean, there's an example at the bottom of the page to illustrate as I…

Contents