simple_date_format
The simple_date_format
method creates a Java SimpleDateFormat
from a date-time string.
note
This method is intended for use in Python code when a SimpleDateFormat
is needed. It should not be used directly in query strings.
The function is commonly used to create a SimpleDateFormat
in Python, which is then used in query strings.
Syntax
simple_date_format(pattern: str) -> SimpleDateFormat
Returns
A SimpleDateFormat
.
Example
from deephaven.time import simple_date_format
date_str = "2021/12/10 14:21:17"
sdf = simple_date_format(date_str)
print(type(sdf))
- Log