How to convert startTime and endTime

44 views
Skip to first unread message

~FiMiEtTa~

unread,
Jun 27, 2012, 3:07:43 PM6/27/12
to OpenTripPlanner Users
Hi guys!

I'm calling the api plan in order to compute a trip and to render it
in my iphone.

The api for each legs return these values:

"startTime":1340815200000,
"endTime":1340816640000,
"distance":5304.791309213852,
"mode":"TRAM",
"route":"10",

I'm wondering how to convert this startTime and endTime in the
hour:minutes of my zone in objective c.

Is it in epoch from 1970?

Thanks in advance,
Daniela

David Turner

unread,
Jun 27, 2012, 3:24:12 PM6/27/12
to opentrippl...@googlegroups.com
Yes, but in milliseconds rather than the usual seconds.

Reply all
Reply to author
Forward
0 new messages