mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
[skip ci] Add method to get timestamp in utility wrapper (#12355)
Signed-off-by: ThreadDao <yufen.zong@zilliz.com>
This commit is contained in:
parent
843b068744
commit
ee2239152e
@ -1,3 +1,5 @@
|
||||
from datetime import datetime
|
||||
|
||||
from pymilvus import utility
|
||||
import sys
|
||||
|
||||
@ -118,3 +120,8 @@ class ApiUtilityWrapper:
|
||||
check_result = ResponseChecker(res, func_name, check_task, check_items, is_succ,
|
||||
timeout=timeout, using=using).run()
|
||||
return res, check_result
|
||||
|
||||
def mkts_from_datetime(self, d_time=None, milliseconds=0., delta=None):
|
||||
d_time = datetime.now() if d_time is None else d_time
|
||||
res, is_succ = api_request([self.ut.mkts_from_datetime, d_time, milliseconds, delta])
|
||||
return res
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user