milvus-logo
LFAI
< Docs

hybridts_to_datetime()

This method converts a hybrid timestamp to datetime according to timezone.

Invocation

hybridts_to_datetime(hybridts, tz=None)

Parameters

ParameterDescriptionTypeRequired
hybridtsHybrid timestampIntegerTrue
tzTimezone defined by a fixed offset from UTC. If argument tz is set None or not specified, the hybrid timestamp is converted to the local date and time of the platform.datetime.timezoneTrue

Return

The datetime object.

Raises

Exception: error if tz is not of type datetime.timezone.

Feedback

Was this page helpful?