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

Function test_yymmdd

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

Source from the content-addressed store, hash-verified

92
93
94def test_yymmdd():
95 exchange = ccxt.Exchange({
96 'id': 'sampleexchange',
97 })
98 test_ms = 1750123456789 # 17 June 2025
99 value = exchange.yymmdd(test_ms, '_')
100 assert value == '25_06_17'
101 value2 = exchange.yymmdd(exchange.milliseconds())
102 assert len(value2) == 6
103 int_num = exchange.parse_to_int(value2)
104 assert int_num > 260000 and int_num < 360000 # date between 2026 and 2036
105
106
107def test_yyyymmdd():

Callers 1

test_datetimeFunction · 0.85

Calls 4

yymmddMethod · 0.95
millisecondsMethod · 0.95
parse_to_intMethod · 0.95
ExchangeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…