MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / _date_str

Function _date_str

uncommon_route/traces.py:176–179  ·  view source on GitHub ↗

UTC date for grouping into daily files.

(ts: float)

Source from the content-addressed store, hash-verified

174
175
176def _date_str(ts: float) -> str:
177 """UTC date for grouping into daily files."""
178 import datetime as _dt
179 return _dt.datetime.fromtimestamp(ts, tz=_dt.timezone.utc).strftime("%Y-%m-%d")
180
181
182class FileTraceStorage(TraceStorage):

Callers 2

appendMethod · 0.85
migrate_legacy_jsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected