Skip to main content
Version: Python

dh_today

dh_today provides the current date string according to the current clock.

note

Under most circumstances, this method will return the date according to current system time, but during replay simulations, this method can return the date according to replay time.

info

In query strings, users should choose the built-in function today instead of dh_today. For more information, see:

Syntax

dh_today() -> str

Returns

A string representation of the current date-time.

Examples

from deephaven.time import dh_today

today = dh_today()

print(today)