derhuerst / hafas-departures-in-direction

[obsolete] – Pass in a HAFAS client, get departures in a certain direction.
https://github.com/derhuerst/hafas-departures-in-direction#hafas-departures-in-direction
ISC License
0 stars 0 forks source link

Added note on 'when' option #4

Closed joeinnes closed 7 years ago

joeinnes commented 7 years ago

Turns out, 'when' is supported already as a number of milliseconds added to Date.now(), it's just missing from the readme. Closes #3

derhuerst commented 7 years ago

Thanks for your PR!

However, when is not (or at least not intended to be) relative to the current time, but the absolute point in time. Please adapt the docs accordingly.

joeinnes commented 7 years ago

Ah I see... I misread when = +opt.when as when += opt.when - the plus is just for casting, right?