We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aa18f3 commit 6f2f565Copy full SHA for 6f2f565
README.md
@@ -23,7 +23,20 @@ use Ixnode\PhpTimezone\Timezone;
23
```
24
25
```php
26
-$sizeHumanReadable = (new Timezone($timezone))->getCountryCode();
+$countryCode = (new Timezone('Europe/Berlin'))->getCountryCode();
27
+// DE
28
+```
29
+
30
+```php
31
+$countryCode = (new Timezone('Europe/Berlin'))->getCountryName();
32
+// Germany
33
34
35
36
+use Ixnode\PhpTimezone\Constants\Language
37
38
+$countryCode = (new Timezone('Europe/Berlin'))->getCountryName(Language::DE_DE);
39
+// Deutschland
40
41
42
## Development
0 commit comments