MCPcopy
hub / github.com/TaskingAI/TaskingAI / get_base62_date

Function get_base62_date

backend/tkhelper/utils/base_62.py:21–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20
21def get_base62_date():
22 # Get the current date
23 current_date = datetime.now(timezone.utc)
24 # Format the date as YYYYMMDD
25 date_str = current_date.strftime("%Y%m%d")
26 # Convert the date string to an integer
27 date_int = int(date_str)
28 # Convert the integer to a hexadecimal string
29 return _base62_encode(date_int)

Callers 1

_object_keyFunction · 0.90

Calls 1

_base62_encodeFunction · 0.85

Tested by

no test coverage detected