Jump to content

RESTful Time scales and leap second Web service

The RESTful time scales Web service requires the GET parameters datetime and param and returns the value for the given input.

Valid input parameters:
for param:" leapseconds" (returns the number of leap seconds introduced until the given date), " mjd" (Modified Julian Date), " UT1- UTC" (returns the difference in seconds), " UT1", " TAI", " TT", "isAvailable" (to test the availability of the web service)
for datetime:a datetime string (yyyy-mm-dd HH:MM:SS) for any date since 1972 (e.g. "2012-03-14 14:23:31")

URL: datacenter.iers.org/webservice/REST/timescales/RestController.php

Example: datacenter.iers.org/webservice/REST/timescales/RestController.php

Depending on the ACCEPT header the web service returns "Param", "Datetime" and "Value" in html, json or xml format.

SOAP Time scales and leap second Web service

The SOAP Time scales Web service returns a single value for a specified parameter and datetime:

WSDL file: https://data.iers.org/eris/webservice/timescales/timescales.wsdl

Valid input parameters:
for param:" leapseconds" (returns the number of leap seconds introduced until the given date), " mjd" (Modified Julian Date), " UT1- UTC" (returns the difference in seconds), " UT1", " TAI", " TT", "isAvailable" (to test the availability of the web service)
for datetime:a datetime string (yyyy-mm-dd HH:MM:SS) for any date since 1972 (e.g. "2012-03-14 14:23:31")

Return value: datetime as string for " UT1", " TAI" and " TT", number of leap seconds introduced until the given date for " leapseconds", difference in seconds for " UT1- UTC", "available" for "isAvailable"

Note: You may test the availability of the web service by giving "isAvailable" as param and "00:00:00" as datetime. This will return "available", if the web service is working correctly.

Cookies