Learn R Programming

MBTAr (version 2.0.0)

Tservertime: Queries the current MBTA API server time.

Description

Returns the server time. Useful if needing to sync user computer time with the epoch time of MBTA events.

Usage

Tservertime(api_key)

Arguments

api_key

API key for MBTA API. To obtain one, visit the MBTA Developer Portal (http://realtime.mbta.com/Portal/)

Value

server_dt

Server time, in epoch time. Example: "1361996667"