milvus-logo
LFAI
< Docs
  • Python

mkts_from_datetime()

This method generates a hybrid timestamp based on datetime, timedelta and incremental time interval.

Invocation

mkts_from_datetime(d_time, milliseconds=0.0, delta=None)

Parameters

ParameterDescriptionTypeRequired
d_timeDatetime.datetime.datetimeTrue
millisecondsIncremental time interval. Unit: milliseconds.FloatFalse
deltaA duration indicates the difference between two pieces of date, time, or datetime instances to microsecond resolution.datetime.timedeltaFalse

Return

A new hybrid timestamp.

Feedback

Was this page helpful?