@trashpanda001/helpers
    Preparing search index...

    Function parseUUID7Timestamp

    • Parse the timestamp from a UUID v7. UUID v7 stores a Unix timestamp in milliseconds in the first 48 bits.

      Parameters

      • uuid7: string

        the UUID v7 string to parse

      Returns Date

      the timestamp as a Date

      import { parseUUID7Timestamp } from "@trashpanda001/helpers/string"

      parseUUID7Timestamp("01234567-90ab-7fff-ffff-ffffffffffff")
      // 2009-08-23T03:58:18.283Z