()
| 19 | |
| 20 | |
| 21 | def 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) |
no test coverage detected