Skip to content

Commit 91cc1b8

Browse files
authored
Merge pull request #14 from infocyph/feature/update
Update README.md
2 parents 0bca3d4 + f6b5157 commit 91cc1b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)