Search code examples
objective-cxmltimestampkmltime-format

What is the time format used in KML files?


I am parsing a KML file on the iPhone, and I need to know what the time format of this string from the KML file is: 2011-05-16T08:00:59Z.

I think it is somewhere along the lines of the following, but I don't know what the Z stands for: YYYY-MM-ddTHH:mm:ss.


Solution

  • This is ISO 8601. The Z stands for Zulu time, also called UTC or GMT, i.e. the +0 timezone.