The timestamp to use (defaults to current time)
Base-36 timestamp string
base36Timestamp(); // e.g. "m5x2k1abc4"
base36Timestamp(Date.now()); // e.g. "m5x2k1abc4"
export function base36Timestamp(timestamp: number = Date.now()): string {
return timestamp.toString(36) + Math.random().toString(36).slice(3);
}
Opaque base-36 timestamp string (milliseconds + random suffix). Used by some suppliers for cache-busting request IDs.