Use of cookies
Cookies help us to provide our services. By using our website you agree that we can use cookies. Read more about our Privacy Policy and visit the following link: Privacy Policy
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: https://datacenter.iers.org/webservice/REST/timescales/RestController.php
Example: https://datacenter.iers.org/webservice/REST/timescales/RestController.php?param=leapseconds&datetime=2003-03-12%2023:59:59
Depending on the ACCEPT header the web service returns "Param", "Datetime" and "Value" in html, json or xml format.
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.