MCPcopy Create free account
hub / github.com/InternLM/InternBootcamp / format_time_now

Function format_time_now

internbootcamp/utils/format_time_now.py:3–4  ·  view source on GitHub ↗
(format_str: str = "%Y%m%d%H%M%S")

Source from the content-addressed store, hash-verified

1import datetime
2
3def format_time_now(format_str: str = "%Y%m%d%H%M%S") -> str:
4 return datetime.datetime.now().strftime(format_str)

Callers 3

batch_generate_dataFunction · 0.90
run_evaluationMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected