dh_now
dh_now
provides the current datetime as an Instant.
info
In query strings, users should choose the built-in function now
instead of dh_now
. For more information, see:
Syntax
dh_now(
system: bool = false,
resolution: str = 'ns',
) -> Instant
Parameters
Parameter | Type | Description |
---|---|---|
system optional | bool |
|
resolution optional | str | The resolution of the returned time. The default ‘ns’ will return nanosecond resolution times if possible. ‘ms’ will return millisecond resolution times. |
Returns
An Instant representation of the current time.
Examples
from deephaven.time import dh_now
print(dh_now())