to_np_timedelta64

to_np_timedelta64 converts a Java time duration to a numpy.timedelta64.

Warning

Avoid deephaven.time functions in query strings. Because deephaven.time provides functions that convert between Python and Java types, every call crosses the Python-Java boundary, which slows performance. For more information, see:

Syntax

Parameters

ParameterTypeDescription
dtUnion[None, Duration, Period]

A Java time duration to convert to a numpy.timedelta64. If None is provided, None is returned.

Returns

Returns a numpy.timedelta64.

Examples