MCPcopy Create free account
hub / github.com/ccxt/ccxt / test_ymdhms

Function test_ymdhms

python/ccxt/test/base/test_datetime.py:129–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127
128
129def test_ymdhms():
130 exchange = ccxt.Exchange({
131 'id': 'sampleexchange',
132 })
133 test_ms = 1750123456789 # 17 June 2025
134 value = exchange.ymdhms(test_ms, '_')
135 assert value == '2025-06-17_01:24:16' or value == '2025-06-17_01:24:17' # todo: php/py rounds up to 17
136
137
138def test_datetime():

Callers 1

test_datetimeFunction · 0.85

Calls 2

ymdhmsMethod · 0.95
ExchangeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…