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

Method ymd

python/ccxt/base/exchange.py:1304–1307  ·  view source on GitHub ↗
(timestamp, infix='-', fullYear=True)

Source from the content-addressed store, hash-verified

1302
1303 @staticmethod
1304 def ymd(timestamp, infix='-', fullYear=True):
1305 year_format = '%Y' if fullYear else '%y'
1306 utc_datetime = datetime.datetime.fromtimestamp(int(round(timestamp / 1000)), datetime.timezone.utc)
1307 return utc_datetime.strftime(year_format + infix + '%m' + infix + '%d')
1308
1309 @staticmethod
1310 def yymmdd(timestamp, infix=''):

Callers 8

test_ymdFunction · 0.95
testYmdFunction · 0.95
fetch_my_tradesMethod · 0.45
fetch_my_tradesMethod · 0.45
yymmddMethod · 0.45
yyyymmddMethod · 0.45
fetchMyTradesMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_ymdFunction · 0.76