datetime: Translate date and time into datetime stamp to use in api...

Description Usage Arguments Details Examples

View source: R/api_calls_authentification.R

Description

The datetime stamp format might be a bit difficult to use. This helper function allows you to supply the date and time and a datetime character string comes out.

Usage

1

Arguments

date

date in iso format (year-month-day): 2018-12-29 for example

time

time in standard format (HH:MM): 20:21

Details

For example if it is 21-08-2018, 15.21 hour in the Netherlands than you can add these two items into the function.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
get_travel_advise(
    fromStation = "Amsterdam Centraal",
    toStation = "Utrecht Centraal",
    dateTime = datetime("2018-08-21","15:21"),
    departure = TRUE
    )

## End(Not run)

nsapi documentation built on May 1, 2019, 9:19 p.m.