MCPcopy Create free account
hub / github.com/Open-Quant/openquant / _format_ts

Function _format_ts

python/openquant/data.py:99–104  ·  view source on GitHub ↗
(v: Any)

Source from the content-addressed store, hash-verified

97
98
99def _format_ts(v: Any) -> str | None:
100 if v is None:
101 return None
102 if hasattr(v, "strftime"):
103 return v.strftime("%Y-%m-%d %H:%M:%S")
104 return str(v)
105
106
107def _gap_expr(symbol_expr: pl.Expr, ts_us_expr: pl.Expr, threshold_seconds: int = 24 * 3600) -> pl.Expr:

Callers 1

_build_quality_reportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected