In date values, how are the last chars determined?

In date values retrieved through Contentful APIs, how are the last chars determined? e.g. 2016-04-19T20:26:51.111Z

Hey @gabriel,

The last few digits, in your case .111Z, are constituted of two different parts of the timestamp.

So let’s dissect it into the smaller bits:

.111: represents the milliseconds.
Z: represents the timezone offset reflected on the timestamp. When Z is present it means UTC time or +0000, an example of a different timezone offset would be +0200, which would reflect Berlin timezone.

If you want to read more about the ISO 8601 Date/Time specification, you can read here: https://www.wikiwand.com/en/ISO_8601

Hope this helps,

Cheers

1 Like