GET actrealtime/time?unixTime={unixTime}&callback={callback}

Use this to retrieve the current system date and time. Since BusTime® is a time dependent system, it is important to synchronize your application with BusTime’s system date and time. This call is unchanged from v1. A JSON response requires v2 or higher

Request Information

URI Parameters

NameDescriptionTypeAdditional information
unixTime

If true, returns the number of milliseconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970.

boolean

None.

callback

string

None.

Body Parameters

None.

Response Information

Resource Description

A well-formed XML or JSON document, containing the current system time, will be returned as a response to gettime.

RequestResponseOfTimeRequestResponse
NameDescriptionTypeAdditional information
bustime-response

TimeRequestResponse

None.

Response Formats

application/json, text/json

Sample:
{
  "bustime-response": {
    "tm": {},
    "error": [
      {},
      {}
    ]
  }
}

text/html

Sample:
{"bustime-response":{"tm":{},"error":[{},{}]}}

application/xml, text/xml

Sample:
<RequestResponseOfTimeRequestResponseV_SDPij9I xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ACTransit.Transit.Domain.Models">
  <Response>
    <Error xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:anyType />
      <d3p1:anyType />
    </Error>
    <Tm />
  </Response>
</RequestResponseOfTimeRequestResponseV_SDPij9I>