timezone_version_get
timezone_version_get
Gets the version of the timezonedb
string **timezone_version_get**
Returns the current version of the timezonedb.
Returns a in the format
, such as .
string``YYYY.increment``2022.2
If you have a timezone database version that is old (for example, it doesn't show the current year), then you can update the timezone information by either upgrading your PHP version, or installing the PECL package. timezonedb
Some Linux distributions patch PHP's date/time support to use an
alternative source for timezone information. In which case this function
will return . You are encouraged to install the
PECL
package in that case as well.
0.systemtimezonedb
Voorbeeld: Getting the timezonedb version
<?php
echo timezone_version_get();
2022.2
List of Supported Timezones