deephaven_ib.time¶
Functionality for working with time in Deephaven and IB.
- to_ib_datetime(time, sub_sec=True)[source]¶
Convert a time to an IB timestamp string.
- Parameters:
time (Union[None, Instant, int, str, datetime.datetime, numpy.datetime64, pandas.Timestamp]) – time. See https://deephaven.io/core/pydoc/code/deephaven.time.html#deephaven.time.to_j_instant for supported inputs.
sub_sec (bool) – true to return subsecond resolution and false otherwise.
- Return type:
str