ScyllaDB University Live | Free Virtual Training Event
Learn more
ScyllaDB Documentation Logo Documentation
  • Deployments
    • Cloud
    • Server
  • Tools
    • ScyllaDB Manager
    • ScyllaDB Monitoring Stack
    • ScyllaDB Operator
  • Drivers
    • CQL Drivers
    • DynamoDB Drivers
    • Supported Driver Versions
  • Resources
    • ScyllaDB University
    • Community Forum
    • Tutorials
Install
Search Ask AI
ScyllaDB Docs ScyllaDB Node.js Driver API Reference Modules types TimeUuid
For AI agents: a documentation index is available at https://nodejs-rs-driver.docs.scylladb.com/v0.7.1/llms.txt. A Markdown version of this page is at https://nodejs-rs-driver.docs.scylladb.com/v0.7.1/api/types/TimeUuid.md.

TimeUuid¶

types~TimeUuid(date, ticks, nodeId, clockId)

Represents an immutable version 1 universally unique identifier (UUID). A UUID represents a 128-bit value.

Constructor¶

new TimeUuid(date, ticks, nodeId, clockId)

Creates a new instance of Uuid based on the parameters provided according to rfc4122. If any of the arguments is not provided, it will be randomly generated, except for the date that will use the current date.

If nodeId and/or clockId portions are not provided, the constructor will generate them using crypto.randomBytes(). As it's possible that crypto.randomBytes() might block, it's recommended that you use the callback-based version of the static methods fromDate() or now()in that case.

Parameters:
Name Type Description
date

The date for the instance. If not provided, current Date will be used.

ticks

A number from 0 to 10000 representing the 100-nanoseconds units for this instance to fill in the information not available in the Date, as Ecmascript Dates have only milliseconds precision.

nodeId

A 6-length Buffer or string of 6 ascii characters representing the node identifier, ie: 'host01'.

clockId

A 2-length Buffer or string of 6 ascii characters representing the clock identifier.

Source

types/time-uuid.ts, line 48

Extends¶

  • module:types~Uuid

Members¶

(readonly) buffer

Returns the underlying buffer

Overrides:
  • module:types~Uuid#buffer

Source

types/uuid.ts, line 38

uuidRegex

Used to check if the UUID is in a correct format Source: https://stackoverflow.com/a/6640851 Verified also with documentation of UUID library in Rust: https://docs.rs/uuid/latest/uuid/

Overrides:
  • module:types~Uuid#uuidRegex

Source

types/uuid.ts, line 16

Methods¶

equals(other)

Compares this object to the specified object. The result is true if and only if the argument is not null, is a UUID object, and contains the same value, bit for bit, as this UUID.

Parameters:
Name Type Description
other

The other value to test for equality.

Overrides:
  • module:types~Uuid#equals

Source

types/uuid.ts, line 100

getBuffer()

Gets the bytes representation of a Uuid

Overrides:
  • module:types~Uuid#getBuffer

Source

types/uuid.ts, line 90

getClockId()

Returns the clock id this instance, with the variant applied (first 2 msb being 1 and 0).

Source

types/time-uuid.ts, line 240

getDate()

Gets the Date representation of this instance.

Source

types/time-uuid.ts, line 226

getDatePrecision()

Gets the Date and 100-nanoseconds units representation of this instance.

Source

types/time-uuid.ts, line 205

getNodeId()

Returns the node id this instance

Source

types/time-uuid.ts, line 233

getNodeIdString()

Returns the node id this instance as an ascii string

Source

types/time-uuid.ts, line 247

inspect()

Provide the name of the constructor and the string representation

Overrides:
  • module:types~Uuid#inspect

Source

types/uuid.ts, line 120

toJSON()

Returns the string representation. Method used by the native JSON.stringify() to serialize this instance.

Overrides:
  • module:types~Uuid#toJSON

Source

types/uuid.ts, line 128

toString()

Returns a string representation of the value of this Uuid instance. 32 hex separated by hyphens, in the form of 00000000-0000-0000-0000-000000000000.

Overrides:
  • module:types~Uuid#toString

Source

types/uuid.ts, line 111

(static) fromString(value)

Parses a string representation of a TimeUuid

Parameters:
Name Type Description
value

should be in 00000000-0000-0000-0000-000000000000 format

Source

types/time-uuid.ts, line 145

(static) max()

Returns the biggest possible type 1 uuid with the provided Date.

Source

types/time-uuid.ts, line 159

(static) min()

Returns the smallest possible type 1 uuid with the provided Date.

Source

types/time-uuid.ts, line 152

Was this page helpful?

PREVIOUS
Row
NEXT
Tuple
  • Create an issue
  • Edit this page

On this page

  • TimeUuid
    • Constructor
    • Extends
    • Members
    • Methods
ScyllaDB Node.js Driver
Search Ask AI
  • v0.7.1
    • main
    • v0.7.1
    • v0.6.1
  • Getting Started
  • Statements
    • Executing CQL Statements - Best Practices
    • Unprepared Statements
    • Batch Statements
    • Parameterized queries
  • Fetching Large Result Sets
  • Schema Metadata
  • Topology
  • Replicas
  • Query Tracing
  • Logging
  • Policies
    • Load Balancing
    • Retry Policies
  • Authentication
  • Client Routes (Private Networking)
  • Shutdown
  • Migration Guide
  • API Reference
    • Modules
      • auth
        • AuthProvider
        • Authenticator
        • PlainTextAuthProvider
      • datastax
        • graph
        • search
      • errors
        • ArgumentError
        • AuthenticationError
        • BusyConnectionError
        • DriverInternalError
        • NoHostAvailableError
        • NotSupportedError
        • OperationTimedOutError
        • ResponseError
      • geometry
      • mapping
        • DefaultTableMappings
        • Mapper
        • ModelBatchItem
        • ModelMapper
        • Result
        • UnderscoreCqlToCamelCaseMappings
        • TableMappings
      • metrics
        • DefaultMetrics
        • ClientMetrics
      • policies
        • addressResolution
          • AddressTranslator
          • EC2MultiRegionTranslator
          • MappingAddressTranslator
        • loadBalancing
          • AllowListPolicy
          • DCAwareRoundRobinPolicy
          • DefaultLoadBalancingPolicy
          • LegacyDefaultLoadBalancingPolicy
          • LoadBalancingConfig
          • LoadBalancingPolicy
          • RoundRobinPolicy
          • TokenAwarePolicy
        • reconnection
          • ConstantReconnectionPolicy
          • ExponentialReconnectionPolicy
          • ReconnectionPolicy
        • retry
          • FallthroughRetryPolicy
          • RetryPolicy
        • timestampGeneration
          • MonotonicTimestampGenerator
          • TimestampGenerator
      • tracker
        • RequestLogger
        • RequestTracker
      • types
        • BigDecimal
        • Duration
        • InetAddress
        • Integer
        • LocalDate
        • ResultStream
        • Row
        • TimeUuid
        • Tuple
        • Uuid
    • Classes
      • Client
      • ColumnInfo
      • ConstantSpeculativeExecutionPolicy
      • DateRange
      • DateRangeBound
      • DseGssapiAuthProvider
      • DsePlainTextAuthProvider
      • Edge
      • Element
      • Encoder
      • EncoderMembers
      • ExecutionOptions
      • ExecutionProfile
      • FrameReader
      • FrameWriter
      • GraphResultSet
      • HashSet
      • LineString
      • NoSpeculativeExecutionPolicy
      • Path
      • Point
      • Polygon
      • PreparedInfo
      • Property
      • ResultColumnsCache
      • ResultSet
      • RustResult
      • RustSession
      • SpeculativeExecutionPolicy
      • SslOptions
      • Token
      • TokenRange
      • Vertex
      • VertexProperty
      • module-metadata-LocalStrategy
    • Interfaces
    • Events
    • Global Functions and Constants
Docs Tutorials University Contact Us About Us
© 2026 ScyllaDB | Terms of Service | Privacy Policy | ScyllaDB, and ScyllaDB Cloud, are registered trademarks of ScyllaDB, Inc.
Last updated on 23 Oct 2026.
Powered by Sphinx 9.1.0 & ScyllaDB Theme 1.9.3