|
timezone_version_getGets the version of the timezonedb Descriptionstring timezone_version_get()
Returns the current version of the timezonedb. ParametersThis function has no parameters. Return Values
Returns a string in the format
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 » timezonedb PECL package.
Some Linux distributions patch PHP's date/time support to use an
alternative source for timezone information. In which case this function
will return Examples
Example #1 Getting the timezonedb version
The above example will output something similar to: 2022.2 |