File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ $timeInterface = new DateTime(); // DateTime implements DateTimeInterface
233233``` php
234234// Get Sonyflake ID
235235// optionally set machine_id, for server detection
236- \Infocyph\UID\TBSL ::generate();
236+ \Infocyph\UID\Sonyflake ::generate();
237237// alternatively
238238\Infocyph\UID\sonyflake();
239239```
@@ -242,15 +242,15 @@ $timeInterface = new DateTime(); // DateTime implements DateTimeInterface
242242``` php
243243// Parse Sonyflake ID
244244// returns [time => DateTimeInterface object, sequence, machine_id]
245- \Infocyph\UID\TBSL ::parse($sonyflake);
245+ \Infocyph\UID\Sonyflake ::parse($sonyflake);
246246```
247247- Specify start time for Sonyflake ID (a Sonyflake ID is unique upto 174 years from the start date):
248248
249249``` php
250250// By default, the start time is set to `2020-01-01 00:00:00`, which is changeable
251251// but if changed, this should always stay same as long as your project lives
252252// & must call this before any Sonyflake call (generate/parse)
253- \Infocyph\UID\TBSL ::setStartTimeStamp('2000-01-01 00:00:00');
253+ \Infocyph\UID\Sonyflake ::setStartTimeStamp('2000-01-01 00:00:00');
254254```
255255
256256### TBSL: Time-Based Keys with Lexicographic Sorting (library exclusive)
You can’t perform that action at this time.
0 commit comments