-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unix Timestamp clarification in Provider API #87
Comments
Great point @asadowns, some clarification would be useful here. I personally like the GBFS approach; keeping it as integer, epoch seconds. I can't think of why millisecond precision would be necessary for And ideally, as elsewhere, the two should be aligned where possible. Edit: recalling that @ian-r-rose expressed interest in relaxing the integer restriction over on CityofSantaMonica/mds-provider#4 (comment). |
Time fields like
start_time
,end_time
, and routetimestamp
currently specify their type asUnix Timestamp
. An example from routetimestamp
is1531007628.3774529
.This leaves it open to interpretation and confusion what the correct format is.
GBFS spec specifies for instance
and provides an example
1434054678
or epoch seconds.So using the example from route it should be either
1531007628
for epoch seconds. Or, if greater precision is required epoch milliseconds would be531007628377
.In either case it would be good to clarify what the preferred format for providing time is. If you let me know your preference, I'll put out a PR.
The text was updated successfully, but these errors were encountered: