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
| Name | Description | Type | Additional 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| Name | Description | Type | Additional information |
|---|---|---|---|
| bustime-response | TimeRequestResponse |
None. |
Response Formats
application/json, text/json
Sample:
{
"bustime-response": {
"tm": {},
"error": [
{
"rtpidatafeed": "sample string 1",
"stpid": "sample string 2",
"rt": "sample string 3",
"vid": "sample string 4",
"msg": "sample string 5"
},
{
"rtpidatafeed": "sample string 1",
"stpid": "sample string 2",
"rt": "sample string 3",
"vid": "sample string 4",
"msg": "sample string 5"
}
]
}
}
text/html
Sample:
{"bustime-response":{"tm":{},"error":[{"rtpidatafeed":"sample string 1","stpid":"sample string 2","rt":"sample string 3","vid":"sample string 4","msg":"sample string 5"},{"rtpidatafeed":"sample string 1","stpid":"sample string 2","rt":"sample string 3","vid":"sample string 4","msg":"sample string 5"}]}}
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>
<RequestErrorResponse.BusTimeError>
<Msg>sample string 5</Msg>
<Rt>sample string 3</Rt>
<RtpiDataFeed>sample string 1</RtpiDataFeed>
<StpId>sample string 2</StpId>
<VId>sample string 4</VId>
</RequestErrorResponse.BusTimeError>
<RequestErrorResponse.BusTimeError>
<Msg>sample string 5</Msg>
<Rt>sample string 3</Rt>
<RtpiDataFeed>sample string 1</RtpiDataFeed>
<StpId>sample string 2</StpId>
<VId>sample string 4</VId>
</RequestErrorResponse.BusTimeError>
</Error>
<Tm />
</Response>
</RequestResponseOfTimeRequestResponseV_SDPij9I>
