MCPcopy Create free account
hub / github.com/BAI-LAB/MemoryOS / get_timestamp

Function get_timestamp

memoryos-pypi/utils.py:119–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117
118# ---- Basic Utilities ----
119def get_timestamp():
120 return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
121
122def generate_id(prefix="id"):
123 return f"{prefix}_{uuid.uuid4().hex[:8]}"

Callers 12

compute_segment_heatFunction · 0.90
add_sessionMethod · 0.90
search_sessionsMethod · 0.90
add_memoryMethod · 0.90
get_responseMethod · 0.90
retrieve_contextMethod · 0.90
add_qa_pairMethod · 0.90
update_user_profileMethod · 0.90
add_knowledge_entryMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected