ChemPal Documentation - v1.6.0
    Preparing search index...

    Function base36Timestamp

    • Opaque base-36 timestamp string (milliseconds + random suffix). Used by some suppliers for cache-busting request IDs.

      Parameters

      • timestamp: number = ...

        The timestamp to use (defaults to current time)

      Returns string

      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);
      }