The Akamai Intelligent Platform™ provides a global time reference service, available at http://time.akamai.com. The service returns standard time responses as a Unix time string, an ISO 8601 time string, or an XML response. The XML response includes an optional estimate of the RTT between client and server. This time source provides a reliable time reference for any MPEG-DASH client, for which an accurate clock is a necessity for playback of live content.

This service is not NTP accurate, but is accurate enough that any client with GET capability could synch within 0.5 seconds of the true time.

Responses

  • A valid crossdomain.xml response is returned for Flash usage.
  • Valid CORS headers are returned for JavaScript usage.

Usage

There are three different URLs for accessing the service. All three output formats respond correctly to GET and HEAD requests. The examples below are just the GET requests.

Note: The time reference is available via both http and https.

Unix time

http://time.akamai.com - Returns the edge server’s current time in Unix time.

$ curl -i http://time.akamai.com
    ...

1394474495

ISO format

http://time.akamai.com/?iso - Returns the Edge Server’s current time stamp in ISO 8601 format.

$ curl -i http://time.akamai.com/?iso
    ...

2014-03-10T17:54:53Z

XML Format

http://time.akamai.com/?xml - Returns the Edge Server’s current time as an XML document in both Unix time and as ISO 8601 formats. It includes the RTT between the client and server.

$ curl -i http://time.akamai.com/?xml
    ...

<time><utc>1394474056</utc><rtt>52</rtt><isostring>2014-03-10T17:54:16Z</isostring></time>