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

Function get_current_time_hour

tools/time_util.py:45–50  ·  view source on GitHub ↗

Get current time with hour: '2023-12-02-13' :return:

()

Source from the content-addressed store, hash-verified

43 return time.strftime('%Y-%m-%d %X', time.localtime())
44
45def get_current_time_hour() -> str:
46 """
47 Get current time with hour: '2023-12-02-13'
48 :return:
49 """
50 return time.strftime('%Y-%m-%d-%H', time.localtime())
51
52def get_current_date() -> str:
53 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected