MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / format_timestamp

Function format_timestamp

codeclash/viewer/app.py:982–992  ·  view source on GitHub ↗

Format Unix timestamp as YY/MM/DD HH:MM

(timestamp)

Source from the content-addressed store, hash-verified

980
981
982def format_timestamp(timestamp):
983 """Format Unix timestamp as YY/MM/DD HH:MM"""
984 if timestamp is None:
985 return ""
986 from datetime import datetime
987
988 try:
989 dt = datetime.fromtimestamp(timestamp)
990 return dt.strftime("%y/%m/%d %H:%M")
991 except (ValueError, OSError):
992 return ""
993
994
995def strip_model_prefix(model_name):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected