milvus-logo
Star
0
Forks
0
Get Started

hybridts_to_unixtime()

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.