MCPcopy Create free account
hub / github.com/NanmiCoder/MediaCrawler / get_current_time

Function get_current_time

tools/time_util.py:38–43  ·  view source on GitHub ↗

Get current time: '2023-12-02 13:01:23' :return:

()

Source from the content-addressed store, hash-verified

36
37
38def get_current_time() -> str:
39 """
40 Get current time: '2023-12-02 13:01:23'
41 :return:
42 """
43 return time.strftime('%Y-%m-%d %X', time.localtime())
44
45def get_current_time_hour() -> str:
46 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected