Datetimes accepted by the API need to be given in UTC. This function will accept a datetime or a character with a suitable datetime format, and output a character that is suitable for a URL. All URL input and output in this package should be in Melbourne time, and the UTC conversion should happen
to_datetime(datetime)
Character.
POSIXct or Character.
The API seems to accept both "%Y-%m-%dT%H:%M:%OS" and "%Y-%m-%d %H:%M:%OS", but we opt for the former.