Skip to content

Commit 6f2f565

Browse files
committed
Add README.md updates
1 parent 8aa18f3 commit 6f2f565

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,20 @@ use Ixnode\PhpTimezone\Timezone;
2323
```
2424

2525
```php
26-
$sizeHumanReadable = (new Timezone($timezone))->getCountryCode();
26+
$countryCode = (new Timezone('Europe/Berlin'))->getCountryCode();
27+
// DE
28+
```
29+
30+
```php
31+
$countryCode = (new Timezone('Europe/Berlin'))->getCountryName();
32+
// Germany
33+
```
34+
35+
```php
36+
use Ixnode\PhpTimezone\Constants\Language
37+
38+
$countryCode = (new Timezone('Europe/Berlin'))->getCountryName(Language::DE_DE);
39+
// Deutschland
2740
```
2841

2942
## Development

0 commit comments

Comments
 (0)