Nextcloud PHP API (master)

ISnowflakeDecoder

Nextcloud Snowflake ID decoder

Tags
see
ISnowflakeGenerator

for format

since
33.0.0
Attributes
#[Consumable]
$since: '33.0.0'

Table of Contents

Methods

decode()  : Snowflake
Decode information contained into Snowflake ID

Methods

decode()

Decode information contained into Snowflake ID

public decode(string $snowflakeId) : Snowflake

It includes:

  • server ID: identify server on which ID was generated
  • sequence ID: sequence number (number of snowflakes generated in the same second)
  • createdAt: timestamp at which ID was generated
  • isCli: if ID was generated using CLI or not
Parameters
$snowflakeId : string
Tags
since
33.0
Return values
Snowflake

        
On this page

Search results